digitalmars.D.bugs - [Issue 2659] New: Remove the comma operator
- d-bugmail puremagic.com Feb 13 2009
- d-bugmail puremagic.com Feb 16 2009
http://d.puremagic.com/issues/show_bug.cgi?id=2659 Summary: Remove the comma operator Product: D Version: unspecified Platform: All OS/Version: All Status: NEW Severity: enhancement Priority: P2 Component: DMD AssignedTo: bugzilla digitalmars.com ReportedBy: clugdbug yahoo.com.au The comma operator is an unintuitive operator with very few commendable uses. If comma were added to the increment grammar of the for loop, the comma operator could be removed from the language. It's another piece of baggage from C. --
Feb 13 2009
http://d.puremagic.com/issues/show_bug.cgi?id=2659 ------- Comment #1 from wbaxter 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. --
Feb 16 2009








d-bugmail puremagic.com