[mercury-users] [petdr at miscrit.be: Report on the ICFP 2000 prog contest]

Fergus Henderson fjh at cs.mu.OZ.AU
Wed Sep 6 13:56:47 AEDT 2000


On 06-Sep-2000, Tyson Dowd <trd at cs.mu.OZ.AU> wrote:
> We don't currently support this syntax -- instead you have to write 4
> new functions.  But I don't think it would be too hard to accept a pred
> expression or func expression after the "is" in an instance declaration.

I think we should just accept arbitrary clauses in instance declarations.
In some cases it's nicer to define a procedure using several clauses
with pattern matching rather than using a disjunction where the pattern
matching is done with explicit unifications.

This extension would be easy to implement and IMHO it should be high
on our priority list.

-- 
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