[mercury-users] Idea for a currying library

Fergus Henderson fjh at cs.mu.OZ.AU
Wed Jan 19 07:24:40 AEDT 2000


On 18-Jan-2000, Richard A. O'Keefe <ok at hermes.otago.ac.nz> wrote:
> Ralph Becket wrote:
> 	I don't mind supplying top-level modes for foo/3, but it does grate
> 	having to write them for lambdas where it should be bleeding obvious
> 	what is meant in most cases.
> 	
> It would be very nice if mode &c inference for lambda-expressions were the
> default, even when everything else was explicit.

Type inference for lambda-expressions is indeed the default.
Mode and determinism inference for lambda expressions is something
that the compiler just doesn't know how to do; even with the `--infer-all'
option, you still need to specify the modes and determinism of lambda
expressions explicitly.

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