I'd suggest dropping the

   Identifier_opt ( FormalParameterList_opt ) [no LineTerminator here]
IniitialValue

production.  Wouldn't that mean that you could have something like this?

    var allA = list.map(() "a")

I think the curly braces are ok here.  Hated keywords should be
attacked one at a time, imo.


On Tue, Mar 6, 2012 at 12:42, Brendan Eich <[email protected]> wrote:
> Brendan Eich wrote:
>>
>> ShortFunctionExpression:
>>    Identifier_opt ( FormalParameterList_opt ) { FunctionBody }
>>    Identifier_opt ( FormalParameterList_opt ) IniitialValue
>
>
> Let's try that again:
>
> ShortFunctionExpression:
>    Identifier_opt ( FormalParameterList_opt ) [no LineTerminator here] {
> FunctionBody }
>    Identifier_opt ( FormalParameterList_opt ) [no LineTerminator here]
> IniitialValue
>
> But of course the second production creates bad ambiguities for all
> InitialValue bodies that start with an operator or punctuator that could be
> infix as well as prefix: +/-/[ at least.
>
> More work needed. I may write a strawman up. Encourage me!
>
> /be
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to