Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

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:
> <>
> 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 <>
Plots of your system's performance -
To unsubscribe, mail Archives:
Bug reports: FAQ:
Beginner's list: