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] ANNOUNCE: mod_caml 1.0.6 - includes security patch
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2004-01-19 (18:05)
From: Richard Jones <rich@a...>
Subject: Re: [Caml-list] ANNOUNCE: mod_caml 1.0.6 - includes security patch
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.


Richard Jones.
Merjis Ltd. - 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 Archives:
Bug reports: FAQ:
Beginner's list: