Removing the space in `a+ +b`?

akxe at seznam.cz akxe at seznam.cz
Fri Jun 28 16:02:54 UTC 2019


Why would you need it, there should not be need to type the second + as if 
the first is number it will be added anyway.

---------- Původní zpráva ----------
Od: Isiah Meadows 
Datum: 28. 6. 2019 v 17:44:35
Předmět: Removing the space in `a+ +b`?


Currently, the production `a+ +b` requires a space to disambiguate it from 
the increment operator. However, `a++b` is not itself valid, as the postfix 
increment cannot be immediately followed by a bare identifier on the same 
line, nor can a prefix operator be preceded by one on the same line. Could 
the grammar be amended to include this production and make it evaluate 
equivalently to `a+ +b`




AdditionExpression :: AdditionExpression `++` [no LineTerminator here] 
UnaryExpression
-- 

-----

Isiah Meadows
contact at isiahmeadows.com(mailto:contact at isiahmeadows.com)
www.isiahmeadows.com(http://www.isiahmeadows.com)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20190628/8154ef41/attachment.html>


More information about the es-discuss mailing list