The idea is to introduce a grammar hack that notices `a++b` and
evaluates it with identical semantics to `a+ +b`. C++ used a similar
trick to allow `Foo>` in addition to `Foo< Bar >` for nested
template application, because it previously conflicted with `>>`. For
instance, consider `Foo>
Lexer already sees `++` as operator, not `+` operator**s**. It can be hard to
implement something like that.
___
es-discuss mailing list
es-discuss@mozilla.org
https://mail.mozilla.org/listinfo/es-discuss
Just an update to you all: I'm only very weakly for this, and I'm okay
to rescind this suggestion.
-
Isiah Meadows
cont...@isiahmeadows.com
www.isiahmeadows.com
On Fri, Jun 28, 2019 at 5:01 PM Waldemar Horwat wrote:
>
> On 6/28/19 8:41 AM, Isiah Meadows wrote:
> > Currently, the production
On 6/28/19 8:41 AM, Isiah Meadows 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
Personally I would reserve the `a ++ b` pattern for some future semantics
for an infix version of the `++` operator, if anyone ever comes up with one.
On Fri, Jun 28, 2019 at 12:37 PM guest271314 wrote:
> > But more importantly, there is no point into searching for a solution
> unless there is
> But more importantly, there is no point into searching for a solution
unless there is a problem. What is the problem with that space?
Agree. The only applicable context which can fathom where the existence of
a space character or not in source code would be golf.
On Fri, Jun 28, 2019 at 5:38
> Le 28 juin 2019 à 19:03, guest271314 a écrit :
>
> Reversing the order does not require a space character
>
> ```
> +b+a
> ```
If you have `+a + +b`, reversing order is not interesting.
But more importantly, there is no point into searching for a solution unless
there is a problem. What
Reversing the order does not require a space character
```
+b+a
```
On Fri, Jun 28, 2019 at 3:42 PM Isiah Meadows
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
> Le 28 juin 2019 à 17:41, Isiah Meadows a écrit :
>
> 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,
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
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.
11 matches
Mail list logo