Nannying (was: Array comprehension syntax)
rossberg at google.com
Wed Sep 26 06:22:44 PDT 2012
On 26 September 2012 15:02, Brendan Eich <brendan at mozilla.com> wrote:
> 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!
Sounds good to me.
> Separate question to you: (for|let|if)+ is what Jason championed, are you on
Right, I see no reason to artificially restrict the syntax to specific
cases, especially given that it wouldn't make the expansion any
simpler. So I also favour (for|if)+ or (for|let|if)+ (having let makes
sense, although it probably isn't super important).
More information about the es-discuss