Should we deprecate comma?

Andrei Alexandrescu SeeWebsiteForEmail at erdani.org
Sun Mar 23 20:05:54 PDT 2014


On 3/23/14, 7:45 PM, Daniel Murphy wrote:
> "Andrei Alexandrescu"  wrote in message
> news:lgo5ei$1tne$1 at digitalmars.com...
>
>> One concession we could make would be to disallow using the result of
>> the operator. That might actually catch all bugs discussed herein.
>>
>> if (condition) ++i, ++j; // fine
>> foreach (e; exp1, exp2) {}   // ERROR
>> if(pMgr->ShouldRecordEvent(eSE_Weapon), pOwnerRaw) // ERROR
>> return pMgr->RecordEvent(eSE_Weapon), pOwnerRaw; // ERROR
>>
>> I think this would be a compromise worth looking into.
>>
>
> I could live with that, although I'd still rather see it die.

Boil the frog slowly. -- Andrei


More information about the Digitalmars-d mailing list