English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

Browse thread
[Caml-list] Dynamically evaluating OCaml code
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2004-04-08 (15:27)
From: Markus Mottl <markus@o...>
Subject: Re: [Caml-list] Dynamically evaluating OCaml code
On Thu, 08 Apr 2004, Richard Jones wrote:
> My "private library" defines:
> val first : int -> 'a list -> 'a list
> which returns the first n members of a list.  As for slicing the
> middle from a list, I tend to think that the original poster should
> probably be using a different, more suitable structure.  Perhaps an
> Array if he wants random access.

That's also my opinion: it's usually an indication of a bad choice
concerning datastructure if you need such list functions.

> Well, having a broad library helps to implement things.  For example,
> LWP-like functionality [in perl4caml] makes writing scripts which
> analyse websites an awful lot simpler.  Having functions which allow
> me to convert from Y/M/D to ISO-standard years and weeks [which I have
> written] makes writing business analysis functions more tractable.
> Perl and Python have all this stuff, which makes it much easier to
> implement these sorts of boring businessy programs.

I absolutely agree with you!  But the point is: is this really so
important to have it in the _standard_ library?  You didn't mention the
word "standard" so I suppose you'd be perfectly happy if somebody wrote a
fully-featured library for this kind of functionality?  And you'd rather
like to see better "social tools" for making use of such contributions?


Markus Mottl          http://www.oefai.at/~markus          markus@oefai.at

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