Version française
Home     About     Download     Resources     Contact us    
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: -- (:)
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.

Best,
Blair

-- 
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