I have heard it argued that "await" needs higher precedence than we've been considering for yield, but I don't remember the argument. Anyone? Would LeftHandSideExpression be adequate for whatever that argument was?
In the future of promises, we will either continue to use yield as await, or we will provide an (essentially synonymous) await. Either way, it would be good for both of these to have the same precedence, and for that precedence to satisfy both needs. On Sun, Nov 10, 2013 at 5:45 PM, Brendan Eich <[email protected]> wrote: > Mark S. Miller wrote: > >> >> >> Another way to go is far higher precedence, say >> LeftHandSideExpression? That avoids all arithmetic operators, >> unary and binary. >> >> >> If we go with the highest plausible precedence, we can always lower it >> later. Not vice versa. >> > > Yep -- I'm warming up to LeftHandSideExpression. It allows new and call > forms, member expressions, primary expressions, but not unparenthesized > ternary, binary or unary operators -- and (crucially for the bug) not > anything ending in AssignmentExpression. Allen? > > /be > -- Cheers, --MarkM
_______________________________________________ es-discuss mailing list [email protected] https://mail.mozilla.org/listinfo/es-discuss

