Should we deprecate comma?

Asman01 jckj33 at gmail.com
Sun Mar 23 19:29:26 PDT 2014


>     if (cond) exp1, exp2;   // in most case, this is not a bug.
>
>    So, completely removing comma operator will cause negative 
> affect in
> some cases.
>
> Kenji Hara

In this case you should use { exp1; exp2; } There's two 
expressions, so same number of ';' should appear and it make code 
more clean. I know it's personal. It's just IMHO.


More information about the Digitalmars-d mailing list