[Issue 2659] Remove the comma operator

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Feb 16 17:10:33 PST 2009


http://d.puremagic.com/issues/show_bug.cgi?id=2659





------- Comment #1 from wbaxter at gmail.com  2009-02-16 19:10 -------
(In reply to comment #0)
> The comma operator is an unintuitive operator with very few commendable uses.

About the only real use it gets in C is in preprocessor macro hacks.  And we
all know D's stance on preprocessing.

> If comma were added to the increment grammar of the for loop,
> the comma operator could be removed from the language.

Or put to better purpose making (a,b,c) a literal tuple syntax.


-- 



More information about the Digitalmars-d-bugs mailing list