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-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

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 :: : GCS {C,UL}++++$ a? !tv
: When in doubt, use brute force. -- Ken Thompson : {E-,w}-- {b++,e}>+++ h

To unsubscribe, mail Archives:
Bug reports: FAQ:
Beginner's list: