Version française
Home     About     Download     Resources     Contact us    
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: -- (:)
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.

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