Interesting user mistake

Andrei Alexandrescu via Digitalmars-d digitalmars-d at puremagic.com
Fri Sep 4 14:10:14 PDT 2015


On 09/04/2015 08:02 AM, Steven Schveighoffer wrote:
> On 9/3/15 5:59 PM, Brian Schott wrote:
>> On Thursday, 3 September 2015 at 17:17:26 UTC, Steven Schveighoffer
>> wrote:
>>> What about all other operations that may be typos from op= where op is
>>> also a unary operator? e.g. =-
>>
>> We'd have to special-case '*':
>>
>> a=*b;
>>
>
> You could say the same thing for =-:
>
> a=-b;
>
> seems reasonable for someone who doesn't like whitespace. I think
> Andrei's rule was the token sequence must have whitespace after the
> operator in order to be rejected. So the above would be fine.

Yah, that's what I was thinking. -- Andrei



More information about the Digitalmars-d mailing list