Syntax...

Neal Gafter neal at gafter.com
Fri Nov 20 14:51:06 PST 2009


On Fri, Nov 20, 2009 at 3:05 PM, Rémi Forax <forax at univ-mlv.fr> wrote:

>  Le 20/11/2009 20:44, Neal Gafter a écrit :
>
> The 0.6a syntax is based on CLang<http://lists.cs.uiuc.edu/pipermail/cfe-dev/2008-August/002670.html>,
> but with # instead of ^.  I kind of like ^ better, but that's slightly
> inconsistent with method references, which must use # because (a) that's the
> javadoc syntax, and (b) it would be ambiguous to use ^.
>
>
> I vote for any syntax that clearly differentiate between lambda and
> function type.
>

Remi-

All of these syntax forms do.  Either there's a type between the # (or ^)
and the open paren (for a function type) or there isn't (for a lambda).  Is
that clear enough for your taste?

-Neal
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.openjdk.java.net/pipermail/closures-dev/attachments/20091120/39623ac3/attachment.html 


More information about the closures-dev mailing list