From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id TAA06142; Thu, 15 Aug 2002 19:46:29 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id TAA06068 for ; Thu, 15 Aug 2002 19:46:28 +0200 (MET DST) Received: from sark.cc.gatech.edu (sark.cc.gatech.edu [130.207.7.23]) by nez-perce.inria.fr (8.11.1/8.11.1) with ESMTP id g7FHkRn04880 for ; Thu, 15 Aug 2002 19:46:27 +0200 (MET DST) Received: from gaia.cc.gatech.edu (gaia.cc.gatech.edu [130.207.3.8]) by sark.cc.gatech.edu (8.11.6/8.11.6) with ESMTP id g7FHkPS16263 for ; Thu, 15 Aug 2002 13:46:25 -0400 (EDT) Received: (from fernando@localhost) by gaia.cc.gatech.edu (8.11.6/8.11.6) id g7FHkPT16520; Thu, 15 Aug 2002 13:46:25 -0400 (EDT) Date: Thu, 15 Aug 2002 13:46:25 -0400 From: Fernando Alegre To: caml-list@inria.fr Subject: Re: [Caml-list] Namespace proposal Message-ID: <20020815134625.A9235@gaia.cc.gatech.edu> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: ; from David.Gurr@med.ge.com on Thu, Aug 15, 2002 at 12:13:47PM -0500 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk On Thu, Aug 15, 2002 at 12:13:47PM -0500, Gurr, David (MED, self) wrote: > > > For me package is not a modules collection, but just > > a way of multi-word module naming. It's not so easy to > > give short and still adequate names to the modules, but > > something like Db.Core.Storage looks much better then > > Dbstorage, and Storage can still be accessed just as > > "Storage" from modules of the same "package". Just a naming > > way, nothing more. > > And what happens when you need to abstract over a module/sub-package? -D I think a naming convention like this is definitely needed, but in order not to be confused with sub-modules, a different character should be used. For example: Db/Core/Storage could be a legal module name (in Db/Core/storage.ml), and Db.Core.Storage could be a module hierarchy defined in Db.ml, and Db/Core/Storage.Medium could be a submodule defined in Db/Core/storage.ml,... An added advantage of this syntax is that it is consistent with the overall esthetics of the OCaml language (i.e., ugly). :-) Fernando ------------------- To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ Beginner's list: http://groups.yahoo.com/group/ocaml_beginners