Re:Sizeof(char) is 1
by wlievens on Monday September 06, 2010 @06:13AM
(#1666378)
The only sane thing is to use if statements, imho. No ninja cowboy engineer nonsense.
[ Parent
| on HN ]
Correct bracketing would be plenty in this case. If-statements sometimes (not always) make code much less readable than ternary operations.
This is why more languages should adopt the every-form-returns-a-value paradigm.
Sometimes, if-statements unnecessarily add lines, and the lines become harder to read.
I would say it's a case-by-case statement. Well, okay, more specifically, I would say that the use of a single ternary if is a case-by-case statement.