[mercury-users] Syntactic sugar for higher order types and mo des
Fergus Henderson
fjh at cs.mu.OZ.AU
Wed Jul 26 13:11:03 AEST 2000
On 26-Jul-2000, Michael Day <mcda at students.cs.mu.oz.au> wrote:
>
> > 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.
>
> Since Mercury has if-then-else keywords, isn't the -> ; syntax deprecated
> and retained solely for Prolog compatibility? Will it be going away in the
> future?
The `... -> ... ; ...' syntax for if-then-else is not deprecated.
At this stage we have no plans to remove it.
--
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