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
Ocaml compiler features
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2007-01-16 (06:10)
From: ketty <kattlachan@g...>
Subject: Re: [Caml-list] Ocaml compiler features
On 1/16/07, Edgar Friendly <> wrote:
> I don't know if this is reasonable, but what about having an
> if/then[/else] as now (no semis inside), but also having an
> if/then[/else]/end that allows semi-delimited expressions inside?  This
> would be light-weight (and non-intrusive), but still allow imperative
> programmers their nice compound expressions inside if control paths.

I would suggest using some other name than 'end' (maybe 'endif'?)
since end is allready used to terminate a lot of other structures, if
'end' might or might not follow an if it would mess those other
structures up big time :)