Syntax...

Vladimir Kirichenko vladimir.kirichenko at gmail.com
Sat Nov 21 12:59:09 PST 2009


Rémi Forax wrote:
> I vote for fun and lambda too.

Two keywords:) With a short form (EBNF.3) use of

fun int f = fun int => 3;

will be marginal, in favor of

fun int f => 3;

So it's not necessary to use 2 keywords which almost never will be
together in real life.

Actually short form of function could be seen as named (not anonymous)
lambda. It's a "codefolding" similar to:

x += 1;

x = x + 1;

-- 
Best Regards,
Vladimir Kirichenko

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 259 bytes
Desc: OpenPGP digital signature
Url : http://mail.openjdk.java.net/pipermail/closures-dev/attachments/20091121/7940b46b/attachment.bin 


More information about the closures-dev mailing list