Killing the comma operator

H. S. Teoh via Digitalmars-d digitalmars-d at puremagic.com
Tue May 10 06:28:35 PDT 2016


On Tue, May 10, 2016 at 08:49:28AM -0400, Steven Schveighoffer via Digitalmars-d wrote:
[...]
> For my input, I say kill it with fire, but only after deprecation :)
> When you see the kinds of bugs this has caused, it's horrifying.

+1.  Kill the comma operator with fire.  Usage in for-loops should be
done as special-case syntax, *not* as comma operator (i.e., "," in for
loops should be accepted as part of for-loop statement syntax, not as
part of expression syntax).

What to do with tuple syntax is a different kettle o' fish. But before
we get there, we need to kill comma first. So let's at least take this
first step.


--T


More information about the Digitalmars-d mailing list