Interesting user mistake

via Digitalmars-d digitalmars-d at puremagic.com
Thu Sep 3 10:03:24 PDT 2015


On Thursday, 3 September 2015 at 16:46:30 UTC, Andrei 
Alexandrescu wrote:
> The gist of it is the user wrote =+ instead of +=. I wonder if 
> we should disallow during tokenization the sequence "=", "+", 
> whitespace. Surely it's not a formatting anyone would aim for, 
> but instead a misspelling of +=.

Seems reasonable.

I tried to search for that pattern 
(<https://searchcode.com/?q=%3D%2B>) and it says 9 results for D, 
but clicking the D filter doesn't seem to do anything, so I'm not 
sure what the actual cases are.


More information about the Digitalmars-d mailing list