Version française
Home     About     Download     Resources     Contact us    
Browse thread
Parameter evaluation order
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: brogoff <brogoff@s...>
Subject: Re: [Caml-list] Re: Parameter evaluation order
On Wed, 24 Aug 2005, Christophe Raffalli wrote:
> Anyway, I always found that the application of constructor has a syntax
> to near the syntax of function application:
>
> f (x,y) and A (x,y) are both meaningfull ...
>
> I would prefer square bracket for constructor application, mandatory
> even for unary constructor (and maybe also constant constructor then you
> can lift the restriction about capital letter)

The examples that bother me most are record constructors, where I want to
read structured data from a file into a record. And of course :: (which is
just sugar) too.

If it were just functions, it would be less annoying, but left to right is
less surprising.

It's a fun topic to chat about, but if you were allowed one change in the
language, surely this wouldn't be it? :-)

-- Brian