Version française
Home     About     Download     Resources     Contact us    
Browse thread
Wanted: your feedback on the hierarchy of OCaml Batteries Included
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Richard Jones <rich@a...>
Subject: Re: [Caml-list] Wanted: your feedback on the hierarchy of OCaml Batteries Included
On Tue, Nov 18, 2008 at 08:17:36PM +0000, Jon Harrop wrote:
> If the library creator did not use functors or classes to make their design 
> reusable then the only solution for the user is to include all of the 
> implementations they require:

You're talking about something completely different.

In Perl they have:

  Net
  Net::Amazon
  Net::BitTorrent
  Net::FTPServer
  (and a million others[1])

The proposal is to have a hierarchy of OCaml modules, of this sort:

  Net
  Net.Amazon
  Net.BitTorrent
  Net.FTPServer
  (and a million more)

which doesn't scale.  However, using '_' as a separator scales because
distributed, loosely coordinated parties can add new modules ad hoc to
such a namespace.

Rich.

[1] http://www.cpan.org/modules/by-module/Net/

-- 
Richard Jones
Red Hat