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 TAA28683; Mon, 19 Jan 2004 19:05:19 +0100 (MET) 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 TAA28610 for ; Mon, 19 Jan 2004 19:05:18 +0100 (MET) Received: from aomori.annexia.org (annexia.force9.co.uk [212.56.101.183]) by nez-perce.inria.fr (8.11.1/8.11.1) with ESMTP id i0JI5Hv23393 for ; Mon, 19 Jan 2004 19:05:17 +0100 (MET) Received: from rich by aomori.annexia.org with local (Exim 3.36 #1 (Debian)) id 1Aidm1-0004FH-00 for ; Mon, 19 Jan 2004 18:05:17 +0000 Date: Mon, 19 Jan 2004 18:05:17 +0000 To: Ocaml Mailing List Subject: Re: [Caml-list] ANNOUNCE: mod_caml 1.0.6 - includes security patch Message-ID: <20040119180517.GA16278@redhat.com> References: <20040116093454.GA23909@redhat.com> <20040119111353.A31726@beaune.inria.fr> <20040119113637.GA30306@redhat.com> <20040119154333.A7394@beaune.inria.fr> <20040119161011.GA10845@redhat.com> <20040119174640.GA28829@fichte.ai.univie.ac.at> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040119174640.GA28829@fichte.ai.univie.ac.at> User-Agent: Mutt/1.5.4i From: Richard Jones X-Loop: caml-list@inria.fr X-Spam: no; 0.00; caml-list:01 2004:99 regexps:01 mmmm:01 camlp:01 freshmeat:01 footprints:01 giants:99 ltd:98 ocaml:01 caml:01 imho:01 it'd:01 trivial:01 patch:02 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk On Mon, Jan 19, 2004 at 06:46:40PM +0100, Markus Mottl wrote: > Putting functions like "all_lines" into a utility module, you can use > "#load" to apply it from scripts: [...] > I don't see a need for syntactic support. Adding two very short lines > to the top of your script (one-time effort) is hardly distracting. I agree with you completely. It'd just be nice to have the library included in standard OCaml. No, in fact not just 'nice', necessary - so that it becomes a standard idiom which can be taught to students of the language. > > * Syntactic support for regular expression matching / substring extraction. > People often abuse this Perl-feature, because they don't know how to > write lexers/parsers using generators, which would sometimes be the > better choice. Sometimes, but mostly I think regexps are used appropriately. Writing a full-blown parser is something of an undertaking. Writing a simple script which just reads a config file or a data file or similar shouldn't need this effort. (Another related argument: Give me the choice of shooting myself in the foot if I want to.) > Too much redundancy with control constructs is not a good idea, IMHO. > The gain is just too small. Mmmm ... perhaps. Actually I think 'unless' specifically is very useful. I've even written a trivial camlp4 extension for it, and we use it in lots of Merjis code. Rich. -- Richard Jones. http://www.annexia.org/ http://freshmeat.net/users/rwmj Merjis Ltd. http://www.merjis.com/ - improving website return on investment If I have not seen as far as others, it is because I have been standing in the footprints of giants. -- from Usenet ------------------- 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