Should we deprecate comma?
ponce
contact at gam3sfrommars.fr
Mon Mar 24 01:57:43 PDT 2014
On Monday, 24 March 2014 at 01:28:02 UTC, Kenji Hara wrote:
> if (cond) exp1, exp2; // in most case, this is not a bug.
I fail to see how is this useful. It looks way harder to
comprehend, because first you have to recognize a comma operator
has been used (rare), and then you have to understand why it was
used (and it's always avoidable).
If using C++, such a code would trigger a static analyzer warning.
More information about the Digitalmars-d
mailing list