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: Christophe Raffalli <christophe.raffalli@u...>
Subject: Re: [Caml-list] Re: Parameter evaluation order
brogoff a écrit :
> On Wed, 24 Aug 2005, Christophe Raffalli wrote:
> 
>>If you really want left-to-right evaluation order in ocaml, use camlp4
>>to change the syntax with a postfix function application (with the
>>argument to the left).
>>
>>That will be homogenous with type application !
>>
>>:-)
> 
> 
> Alas, it doesn't help with the evaluation of order of constructors,
> which is where I'd find left-to-right most helpful. One of those places
> where I think SML is better, even though I usually favor efficiency
> over elegance.
> 
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)

> -- Brian
>