From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on yquem.inria.fr X-Spam-Level: * X-Spam-Status: No, score=1.4 required=5.0 tests=AWL,DNS_FROM_SECURITYSAGE autolearn=disabled version=3.1.3 X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from mail3-relais-sop.national.inria.fr (mail3-relais-sop.national.inria.fr [192.134.164.104]) by yquem.inria.fr (Postfix) with ESMTP id 7BB34BBAF for ; Wed, 19 Nov 2008 21:11:27 +0100 (CET) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ArwBABwCJElQDPIRi2dsb2JhbACBbZFqAQEBCgsKBw8Fvy6Bc4EG X-IronPort-AV: E=Sophos;i="4.33,633,1220220000"; d="scan'208";a="19347566" Received: from smtp19.orange.fr ([80.12.242.17]) by mail3-smtp-sop.national.inria.fr with ESMTP; 19 Nov 2008 21:11:27 +0100 Received: from me-wanadoo.net (localhost [127.0.0.1]) by mwinf1912.orange.fr (SMTP Server) with ESMTP id A4B521C000A5; Wed, 19 Nov 2008 21:11:26 +0100 (CET) Received: from alcazar.inria.fr (ADijon-158-1-18-55.w92-130.abo.wanadoo.fr [92.130.33.55]) by mwinf1912.orange.fr (SMTP Server) with ESMTP id BD0DC1C000A2; Wed, 19 Nov 2008 21:11:25 +0100 (CET) X-ME-UUID: 20081119201125774.BD0DC1C000A2@mwinf1912.orange.fr Date: Wed, 19 Nov 2008 21:11:24 +0100 From: Maxence Guesdon To: "Paolo Donadeo" Cc: "OCaml mailing list" Subject: Re: [Caml-list] Wanted: your feedback on the hierarchy of OCaml Batteries Included Message-ID: <20081119211124.51610ae9@alcazar.inria.fr> In-Reply-To: <4b5157c30811190146l2c6a5e2cv4a085bcc14ae5f4@mail.gmail.com> References: <1227002178.6170.25.camel@Blefuscu> <200811182330.03947.jon@ffconsultancy.com> <1227076192.6290.7.camel@Blefuscu> <4b5157c30811190146l2c6a5e2cv4a085bcc14ae5f4@mail.gmail.com> X-Mailer: Claws Mail 3.5.0 (GTK+ 2.12.11; i486-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: quoted-printable X-Spam: no; 0.00; maxence:01 guesdon:01 maxence:01 guesdon:01 ocaml:01 ocaml:01 lib:01 lib:01 constructors:01 rocquencourt:01 beginners:01 wrote:01 caml-list:01 functions:01 data:02 On Wed, 19 Nov 2008 10:46:24 +0100 "Paolo Donadeo" wrote: > Couldn't we take inspiration from the Python standard library [1]? > Python hasn't namespace but is provided with a module system similar > to OCaml *and* the standard library is really impressive. >=20 > And nobody can say Python is a bureaucratic language like Java :-) >=20 >=20 > [1] http://www.python.org/doc/2.5.2/lib/lib.html Hello, I think a hierarchy in the documentation is very useful: it helps beginners understand the big picture about all available modules and help developers find the functions they look for. But in the code, I think it is really more convenient to only have one level of "standard" modules. By the way, I, too, always prefix idents with the module they come from, (like in List.length) and only "open" a module to use fields and constructors, so using Data.Containers.List.length or whatever is longer than "List.length" is not an option. Having a shortcut "List" for Data.Containers.List does not convince me, because the problem will remain with modules with no shortcut. So hierarchy in documentation: yes; in the code: no. Regards, --=20 Maxence Guesdon http://yquem.inria.fr/~guesdon/ Service Exp=E9rimentation et D=E9veloppements https://devel.inria.fr/rocq/ INRIA Paris-Rocquencourt http://www.inria.fr/rocquencourt/