Interesting user mistake

Andrei Alexandrescu via Digitalmars-d digitalmars-d at puremagic.com
Thu Sep 3 09:46:29 PDT 2015


http://stackoverflow.com/questions/32369114/leap-years-not-working-in-date-and-time-program-in-dlang

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 +=.


Andrei


More information about the Digitalmars-d mailing list