Project Lambda: Java Language Specification draft 0.1.5

Neal Gafter neal at gafter.com
Tue Feb 16 10:41:35 PST 2010


Because throws clauses can have commas in them, this grammar is ambiguous.

On Tue, Feb 16, 2010 at 9:44 AM, Peter Levart <peter.levart at marand.si> wrote:
> 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