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 (01:18)
From: skaller <skaller@u...>
Subject: Re: [Caml-list] Ocaml compiler features
On Mon, 2007-01-15 at 23:17 +0100, Vincent Hanquez wrote:
> On Mon, Jan 15, 2007 at 12:23:32PM -0800, Martin Jambon wrote:
> > OCaml is well-enough designed so that there is no "common" syntax
> > extension.
> There ARE common syntax extensions.
> how many people miss a try-except-finally construct ?
> how many people miss a return statement to break the flow of a function.
> etc ..

I don't miss any of those things .. the point being they're 
not so 'common' as you might think.

I'm a Python programmer too, and I never use 'finally' ..
I've never found any use for it.

Felix has return statement .. but then Felix has *statements*:
executable Ocaml is all expressions, so a return statement would
seem out of place.

> I'm not talking about weird extensions that ease the life of grammar
> writter or lambda calculus , etc .. but really the basic one.

One man's nice extensions are weird to another. Many parts of
Ocaml are weird (IMHO :) but at least its a shared weirdness.

John Skaller <skaller at users dot sf dot net>
Felix, successor to C++: