Removing the space in `a+ +b`?

guest271314 guest271314 at gmail.com
Fri Jun 28 17:03:41 UTC 2019


Reversing the order does not require a space character

```
+b+a
```

On Fri, Jun 28, 2019 at 3:42 PM Isiah Meadows <isiahmeadows at gmail.com>
wrote:

> 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
> www.isiahmeadows.com
> _______________________________________________
> es-discuss mailing list
> es-discuss at mozilla.org
> https://mail.mozilla.org/listinfo/es-discuss
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20190628/24563073/attachment.html>


More information about the es-discuss mailing list