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 RAA15133; Thu, 8 Apr 2004 17:27:35 +0200 (MET DST) 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 RAA16047 for ; Thu, 8 Apr 2004 17:27:34 +0200 (MET DST) Received: from fichte.ai.univie.ac.at (fichte.ai.univie.ac.at [131.130.174.156]) by nez-perce.inria.fr (8.12.10/8.12.10) with ESMTP id i38FSRjq012830 for ; Thu, 8 Apr 2004 17:28:27 +0200 Received: from fichte.ai.univie.ac.at (markus@localhost [127.0.0.1]) by fichte.ai.univie.ac.at (8.12.3/8.12.3/Debian-6.6) with ESMTP id i38FQsHn019178; Thu, 8 Apr 2004 17:26:54 +0200 Received: (from markus@localhost) by fichte.ai.univie.ac.at (8.12.3/8.12.3/Debian-6.6) id i38FQsUR019177; Thu, 8 Apr 2004 17:26:54 +0200 Date: Thu, 8 Apr 2004 17:26:54 +0200 From: Markus Mottl To: Richard Jones Cc: Ocaml Mailing List Subject: Re: [Caml-list] Dynamically evaluating OCaml code Message-ID: <20040408152654.GB18473@fichte.ai.univie.ac.at> Mail-Followup-To: Richard Jones , Ocaml Mailing List References: <20020104004356.GA1672@mev> <20040408133727.GC29195@excelhustler.com> <20040408145606.GA18473@fichte.ai.univie.ac.at> <20040408151427.GA740@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040408151427.GA740@redhat.com> User-Agent: Mutt/1.4.1i X-Miltered: at nez-perce by Joe's j-chkmail ("http://j-chkmail.ensmp.fr")! X-Loop: caml-list@inria.fr X-Spam: no; 0.00; caml-list:01 dynamically:01 val:01 python:01 ocaml:01 caml:01 int:01 simpler:01 mottl:02 mottl:02 business:96 wrote:03 wrote:03 awful:03 library:03 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk X-Status: X-Keywords: X-UID: 150 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? Regards, Markus -- 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