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] Hashtbl.keys
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2003-02-21 (13:47)
From: Nicolas George <>
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.