Syntax...
Vladimir Kirichenko
vladimir.kirichenko at gmail.com
Fri Nov 20 18:05:39 PST 2009
Vladimir Kirichenko wrote:
> It has gone so far that this:
>
> fun int plusOne(int x) = x + 1;
>
> does not seem an insane idea. It also doesn't contain double type
> declaration.
Or lets go more wild:
named function/closure/lambda:
fun int plusOne(int x) => x + 1;
anonymous:
x.aMethod(fun int(int x) => x + 1);
type decl:
void aMethod( fun int f(int x) ) {....f(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/9552c98f/attachment.bin
More information about the closures-dev
mailing list