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 JAA00471; Thu, 27 Feb 2003 09:09:42 +0100 (MET) 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 JAA00388 for ; Thu, 27 Feb 2003 09:09:42 +0100 (MET) Received: from orcaware.com (bdsl.66.12.233.174.gte.net [66.12.233.174]) by nez-perce.inria.fr (8.11.1/8.11.1) with ESMTP id h1R89cH24469 for ; Thu, 27 Feb 2003 09:09:40 +0100 (MET) Received: from orcaware.com (localhost.localdomain [127.0.0.1]) by orcaware.com (8.12.7/8.12.7) with ESMTP id h1R84KYG016790; Thu, 27 Feb 2003 00:04:24 -0800 Message-ID: <3E5DC6CB.43D4A4A7@orcaware.com> Date: Thu, 27 Feb 2003 00:05:31 -0800 From: Blair Zajac X-Mailer: Mozilla 4.8 [en] (Windows NT 5.0; U) X-Accept-Language: en,x-ns1rfacHe4WNh5,x-ns2U100btwUq5f MIME-Version: 1.0 To: Lauri Alanko CC: caml-list@inria.fr Subject: Re: [Caml-list] Alternative proposal: COAN References: <02103BF1-4835-11D7-B97A-000A95773ED2@rouaix.org> <15963.19322.759255.37091@gargle.gargle.HOWL> <20030225171550.GA5041@stratocaster.home> <20030225214833.GA13418@roke.freak> <20030225221413.GA13865@la.iki.fi> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk 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. Best, Blair -- Blair Zajac 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