Version française
Home     About     Download     Resources     Contact us    
Browse thread
[Caml-list] Hashtbl.keys
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Nicolas George <nicolas.george@e...>
Subject: Re: [Caml-list] OCaml standard library improvement
Le tridi 3 ventôse, an CCXI, Stefano Zacchiroli a écrit :
> I'm collecting from time to time a set of functions that can be easily
> added to the standard library to fill this gap. Probably a lot of other
> OCaml programmers are doing the same. Is there any chance to see this
> functions in the standard library?

There is a problem to solve before it: the confusion between modules
(used as namespace units) and compilation units. Supose you have a large
set of string functions, tu split, search for words, replace, and so on.
You want them all in one module, since you do not want to remember that
split_on_char is in String42, but split_on_chars is in String17. But you
do not want that as soon as you use the trivial split_on_char function,
your resulting binary includes all the bloat for KMP word search.