Nannying (was: Array comprehension syntax)

Brendan Eich brendan at
Wed Sep 26 06:02:21 PDT 2012

Andreas Rossberg wrote:
> On 26 September 2012 00:23, Allen Wirfs-Brock<allen at>  
> wrote:
>> On Sep 25, 2012, at 1:30 PM, Brendan Eich wrote:
>>> Allen Wirfs-Brock wrote:
>>>> I think we should go the all AssignmentExpression route.  It avoid 
>>>> ArrayLiteral-like comma confusion in all three positions.  It is 
>>>> also a simpler set of rules to teach and remember.
> I'm with Allen. We should not have unbracketed commas in an array
> literal for anything else but separating elements. For both
> consistency and future proofness.

Let's agree that AssignmentExpression is ok (required for the left-most 
comprehension expression). The main nannying objection was to trying to 
ban = at top level of if and for heads.

If we can settle on this, I'm ok with it given the custom grammar 
already required for if and for in comprehensions. It's not like anyone 
will truly want / need to write comma expressions in heads, as I said 

Separate question to you: (for|let|if)+ is what Jason championed, are 
you on board?


More information about the es-discuss mailing list