Project Lambda: Java Language Specification draft 0.1.5
Peter Levart
peter.levart at marand.si
Tue Feb 16 09:44:43 PST 2010
On Saturday 13 February 2010 15:25:43 Paul Benedict wrote:
> What happened to the self.invoke() syntax? A barrage of people came
> out saying self.() looks like a syntax error (I agree); I don't recall
> anyone advocating the syntax after the first draft was released.
>
What about the following combo:
FunctionType:
ReturnType #(ParameterTypes) Throws
LambaExpression:
#(Parameters) Block
LambdaInvocationExpression:
FnTypeExpression . #(ParameterExpressions)
The magic '#' is allways where a method name is expected in established syntax. I think this wouldn't be hard to explain to newbies.
Regards, Peter
More information about the lambda-dev
mailing list