Linked by Thom Holwerda on Mon 24th Sep 2012 15:07 UTC, submitted by MOS6510
Permalink for comment 536387
To read all comments associated with this story, please click here.
To read all comments associated with this story, please click here.
Features
Linked by Thom Holwerda on 05/24/13 17:26 UTC
Linked by Thom Holwerda on 05/21/13 21:38 UTC
Linked by Thom Holwerda on 05/20/13 11:29 UTC
Linked by Thom Holwerda on 05/18/13 21:33 UTC
Linked by David Adams on 05/16/13 4:23 UTC
Linked by Thom Holwerda on 05/11/13 21:41 UTC
Linked by Thom Holwerda on 05/08/13 14:22 UTC
Linked by Thom Holwerda on 05/02/13 15:28 UTC
Linked by Thom Holwerda on 04/29/13 21:06 UTC
Linked by Thom Holwerda on 04/24/13 22:24 UTC
More Features »
Sponsored Links



Member since:
2009-08-13
Nitpick: "Trigraphs" -> http://de.wikipedia.org/wiki/Trigraph
You really meant "Ternary Operator", often called "The Ternary [Operator]", because there is only one in both C and C++.
Then: Instead of multiply by -1, just use the unary negation operator.
I disagree about the bad readability of the ternary operator. It is just as readable as an if-statement or class-declarations. The one thing you have to do, like with all other things in C++, you just learn it. That's it.
As with if-statements, while-loops and everything else, you only have to know when to use, and not exaggerate it (again, like with other things in C++).
Apart from that, I totally agree to your last three points.
Edited 2012-09-25 08:59 UTC