Andreas Rossberg wrote:
On 26 September 2012 00:23, Allen Wirfs-Brock<[email protected]> 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 yesterday!

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

/be
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to