Version française
Home     About     Download     Resources     Contact us    
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: -- (:)
From: Edgar Friendly <thelema314@g...>
Subject: Re: [Caml-list] Ocaml compiler features
Jon Harrop wrote:
> If you want to make a fair comparison you should at least 
> start by quantifying how common each is, and whether or not your proposed 
> change has knock on effects (e.g. cyclic precedences).
> 
is it possible to have cyclic precedences?  Don't the precedences have
to be linearly ordered?

>> I think I'm arguing that the precedence of if/then/else is too high, and
>> maybe should be lowered.  Of course this isn't a reasonable thing to
>> ask, because it'll likely break existing code.  Anyone with a way to
>> have my cake and eat it too?
> 
> Use camlp4 to create some more revised syntaxes.
> 
I was thinking more along the lines of some parsing trick that would
look for the 'else' without the user having to use a 'let' binding as
the then-expression.

hmm, maybe it'd suffice to change
	|	 if /expr/ then  /expr/  [ else /expr/ ]
to
	|	 if /expr-high-priority-semi/ then /expr-high-priority-semi/ [ else
/expr-high-priority-semi/ ]

>> I want to compare the situation to TeX / LaTeX -- since you can 
>> customize it so much, people fix what they don't like on their local
>> copy, but these improvements never make it upstream to improve the
>> situation for the world.
>>
Does this make sense?  It's like every user having their own forked
system.  Without someone collecting, filtering, editing, integrating
improvements, improvements stay scattered and of little use to the
community.

E.