caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Fernando Alegre <fernando@cc.gatech.edu>
To: caml-list@inria.fr
Subject: Re: [Caml-list] Namespace proposal
Date: Thu, 15 Aug 2002 13:46:25 -0400	[thread overview]
Message-ID: <20020815134625.A9235@gaia.cc.gatech.edu> (raw)
In-Reply-To: <D4DBD8568F05D511A1C20002A55C008C09C2952B@uswaumsx03medge.med.ge.com>; from David.Gurr@med.ge.com on Thu, Aug 15, 2002 at 12:13:47PM -0500

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


  parent reply	other threads:[~2002-08-15 17:46 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-08-15 17:13 Gurr, David (MED, self)
2002-08-15 17:18 ` Vitaly Lugovsky
2002-08-15 17:53   ` Yurii A. Rashkovskii
2002-08-16  8:52   ` M E Leypold @ labnet
2002-08-16  9:22     ` Vitaly Lugovsky
2002-08-16 10:20       ` Yurii A. Rashkovskii
2002-08-15 17:46 ` Fernando Alegre [this message]
  -- strict thread matches above, loose matches on Subject: below --
2002-08-15 20:42 Gurr, David (MED, self)
2002-08-16  9:19 ` Vitaly Lugovsky
2002-08-15 20:42 Gurr, David (MED, self)
2002-08-15 16:21 Gurr, David (MED, self)
2002-08-15 17:00 ` Vitaly Lugovsky
2002-08-18 17:05 ` John Max Skaller
2002-08-15  9:43 Ohad Rodeh
2002-08-15 13:27 ` Vitaly Lugovsky
2002-08-15 14:23   ` Yurii A. Rashkovskii
2002-08-15 15:53     ` Vitaly Lugovsky
2002-08-12 20:40 Yurii A. Rashkovskii
2002-08-12 14:19 Yurii A. Rashkovskii
2002-08-12 17:31 ` Michael Vanier

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20020815134625.A9235@gaia.cc.gatech.edu \
    --to=fernando@cc.gatech.edu \
    --cc=caml-list@inria.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).