Re:IF-less programming
by tarabukka on Friday December 28, 2012 @09:35AM
(#4977790)
If is an expression in a lot of languages. The syntax you describe is identical to the "ternary statement" in C-style languages.
[ Parent
| on HN ]
The ternary is an expression, not a statement :)
You can write: a = b ? c : d; in C/C++, you can't write a = if(b) { c; } else { d; }.