Should we deprecate comma?

Daniel Murphy yebbliesnospam at gmail.com
Sun Mar 23 19:45:15 PDT 2014


"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. 



More information about the Digitalmars-d mailing list