Trailing colon in ControlInvocationStatement?

Neal Gafter neal at gafter.com
Fri Jan 8 08:56:12 PST 2010


On Fri, Jan 8, 2010 at 4:03 AM, Gernot Neppert <mcnepp02 at googlemail.com>wrote:

> if I read the proposal for ControlInvocationStatement correctly, the
> invocation of a method that accepts a single lambda and no other
> parameters looks a little strange because of the trailing ":"
>

If the lambda has any parameters, the colon is required.  If there are no
other method parameters, then you get a smiley face :)

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


More information about the closures-dev mailing list