Trailing colon in ControlInvocationStatement?

Gernot Neppert mcnepp02 at googlemail.com
Fri Jan 8 04:03:55 PST 2010


Hello,

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

Example:

this method

void foo(#void(String));

can be invoked like this:

foo(String s:)
{
  System.out.println(s);
}


More information about the closures-dev mailing list