The Comma Operator's Deprecation Can't Come Soon Enough
Martin Krejcirik via Digitalmars-d
digitalmars-d at puremagic.com
Tue Jul 15 12:16:17 PDT 2014
On Tuesday, 15 July 2014 at 18:50:08 UTC, John Colvin wrote:
> and not just because I don't like the comma. I'd say it's
> generally bad practice to hide that write to `flag` inside the
You are right for the 'final' code, but the point of my example
is, that I can move the flag to another if and don't have to
change anything else.
Also an assignment is not allowed in a condition and without the
comma operator, it wouldn't be possible at all. That's way too
restrictive.
More information about the Digitalmars-d
mailing list