block lambda revival

Brendan Eich brendan at mozilla.com
Tue May 24 06:55:22 PDT 2011


On May 24, 2011, at 12:18 AM, Jon Zeppieri wrote:

> Should that be:
> 
>   MemberExpression [no LineTerminator here] BlockArguments
> 
> instead? This may just be the sleepiness talking, but it looks like a
> CallExpression always starts with
> 
>   MemberExpression Arguments
> 
> which would require a parenthesized argument list.

Of course, I should have caught that. I had hoped to support

  a.foo() {|...| ...}

but that's too function-looking, and ambiguous without more grammar work.

Fixed, thanks.

/be


More information about the es-discuss mailing list