Killing the comma operator
Kagamin via Digitalmars-d
digitalmars-d at puremagic.com
Wed May 11 02:03:29 PDT 2016
On Tuesday, 10 May 2016 at 12:49:28 UTC, Steven Schveighoffer
wrote:
> Note, there was some pretty good examples of (ab)use of the
> comma operator in one of those:
> https://github.com/dlang/dmd/pull/3399#issuecomment-38401339
If we had control flow statements as expressions one could rewrite
return a(), b;
as
a(), return b;
and thus wouldn't need the C comma expression semantics.
More information about the Digitalmars-d
mailing list