Thread overview |
---|
February 13, 2009 [Issue 2659] New: Remove the comma operator | ||||
---|---|---|---|---|
| ||||
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. -- |
February 17, 2009 [Issue 2659] Remove the comma operator | ||||
---|---|---|---|---|
| ||||
Posted in reply to d-bugmail | 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. -- |
October 23, 2012 [Issue 2659] Remove the comma operator | ||||
---|---|---|---|---|
| ||||
Posted in reply to d-bugmail | http://d.puremagic.com/issues/show_bug.cgi?id=2659 --- Comment #2 from Don <clugdbug@yahoo.com.au> 2012-10-23 07:45:53 PDT --- Just encountered another newbie reason for removing comma. writeln( 6, mixin("7,8"), 9 ); doesn't print the expected 6 7 8 9. Instead it prints 6 8 9. If comma was removed, this wouldn't compile. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
Copyright © 1999-2021 by the D Language Foundation