[mercury-users] currying does not work with higher order predicates ?

Fergus Henderson fjh at cs.mu.OZ.AU
Tue Jul 24 23:04:43 AEST 2001


On 24-Jul-2001, Holger Krug <hkrug at rationalizer.com> wrote:
> It seems as if currying is not allowed for higher order predicates.
> Is this assumption correct or did I make some other kind of error ?

That's correct.  As Tyson explained, you need to use an explicit lambda
expression.

The reason we don't allow that is that type checking/inference turns out to
be a bit harder to do in that case.

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