|
> Oh and never, ever, ever use trinary operators as they are pure evil and offer > zero advantages ( so much so that I don't even remember the syntax and I've been > coding in C for over a decade ).
If you use caution and a grain of salt, you can even put goto statements in your C/C++ program and live happily.
There's nothing wrong in something like what follows, and I find as readable as the if version:
return ( anInt==anotherInt ? 1 : 0 );
|