[m-rev.] Added int:'/'/2 and builtin false/0

Fergus Henderson fjh at cs.mu.OZ.AU
Mon May 20 16:46:18 AEST 2002


On 20-May-2002, Ralph Becket <rafe at cs.mu.OZ.AU> wrote:
> I just think that '//'/2 is an anachronism that makes Mercury harder for
> newcomers to read and understand

Calling it an _anachronism_ would imply that there was some reason
which justified its used in the past but which is no longer valid.
I don't think that is the case.  AFAIK the reasons for choosing '//'
rather than '/' are just as valid now as they ever were.

> (currently, if you inadvertently use
> '/'/2, the compiler simply reports "error: undefined symbol `//2'",
> which is really not very helpful if you don't know the history...)

It would be easy to provide a better error message...

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



More information about the reviews mailing list