Novel operator syntax
brendan at mozilla.com
Tue Oct 29 12:30:28 PDT 2013
André Bargull wrote:
> There are the usual ASI problems. For example this is currently valid:
> ~+ b
> It is parsed as:
> ~+ b;
The fix we entertained for 'is' and 'isnt' was restricted productions:
AdditiveExpression [no LineTerminator here] '~+' MultiplicativeExpression
But we lose backward compatibility. Probably survivable, but who knows?
See my recent post replying to Brandon Andrews.
Note this means ~+ cannot be a single lexeme in general. It has to be
two, ~ and +, when used in the unlikely way: as unary prefix operators
More information about the es-discuss