English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

Browse thread
[Caml-list] Alternative proposal: COAN
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2003-02-27 (08:09)
From: Blair Zajac <blair@o...>
Subject: Re: [Caml-list] Alternative proposal: COAN
Lauri Alanko wrote:
> When Haskell got to the same situation (ie. people began to collect
> miscellaneous libraries into a coherent whole), one of the first things
> to be done was to extend the module system of the language to
> hierarchical namespaces:
> <http://www.haskell.org/~simonmar/libraries/libraries.html>
> This sort of thing is done in Java, it is done in Perl, and it probably
> ought to be done in just about any language that plans to support lots
> of libraries. Naming conflicts are icky. I would very much like O'Caml
> to have hierarchical namespaces as well.

Perl doesn't have hierarchical namespaces.  There's no relationship
between a module OUTER and the module OUTER::INNER.

Given that Perl's done pretty well for itself in having a broad set of
modules with non-hierarchical namespaces, it doesn't look like a requirement
for Ocaml that it be modified to have hierarchical namespaces, while that
may be nice.

It seems to me we just need to put into place a standard package
namimg scheme, such as using `_' as a separator.

So instead of having a module Pxp_reader, would could have XML_PXP_Reader.


Blair Zajac <blair@orcaware.com>
Plots of your system's performance - http://www.orcaware.com/orca/
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