Browse thread
[Caml-list] ANNOUNCE: mod_caml 1.0.6 - includes security patch
[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: | 2004-01-20 (17:35) |
From: | Michal Moskal <malekith@p...> |
Subject: | Re: [Caml-list] ANNOUNCE: mod_caml 1.0.6 - includes security patch |
On Mon, Jan 19, 2004 at 11:45:10PM +0200, Eray Ozkural wrote: > On Monday 19 January 2004 20:05, Richard Jones wrote: > > 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. > > Unless does not sound like a common keyword. > > Haskell style "where" would be excellent though. I was using it all the time > in Haskell. Haskell is lazy, ocaml is strict. Consider following snippet of ``ocaml'': let _ = f (x) where x = g () Now, the reader of the code might take false impression that f() is executed before g(). Of course there is no such danger with function definitions in where blocks, but still I think readability is the reason it is absent from ocaml. -- : Michal Moskal :: http://www.kernel.pl/~malekith : GCS {C,UL}++++$ a? !tv : When in doubt, use brute force. -- Ken Thompson : {E-,w}-- {b++,e}>+++ h ------------------- 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