[mercury-users] Syntactic sugar for higher order types and mo des

Fergus Henderson fjh at cs.mu.OZ.AU
Wed Jul 26 03:59:45 AEST 2000


On 25-Jul-2000, Ralph Becket <rbeck at microsoft.com> wrote:
> Precedences could be changed to do away with the need for unwanted
> parentheses.

This is actually easier said than done.  The difficulty is that the
operator-precedence term parser doesn't know when `->' is part of an
if-then-else and when it is part of a mode definition, so `->' needs
to have the same precedence for both usages.

-- 
Fergus Henderson <fjh at cs.mu.oz.au>  |  "I have always known that the pursuit
WWW: <http://www.cs.mu.oz.au/~fjh>  |  of excellence is a lethal habit"
PGP: finger fjh at 128.250.37.3        |     -- the last words of T. S. Garp.
--------------------------------------------------------------------------
mercury-users mailing list
post:  mercury-users at cs.mu.oz.au
administrative address: owner-mercury-users at cs.mu.oz.au
unsubscribe: Address: mercury-users-request at cs.mu.oz.au Message: unsubscribe
subscribe:   Address: mercury-users-request at cs.mu.oz.au Message: subscribe
--------------------------------------------------------------------------



More information about the users mailing list