News for hackers. Stuff that matters.
Re:IF-less programming by jeremiep on Friday December 28, 2012 @09:43AM (#4977838)
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; }.

Re:IF-less programming by tarabukka on Saturday December 29, 2012 @06:27AM (#4981805)
Oh, yeah. My mistake. Although what you describe is a lot more functional in style. You could probably emulate it in a language with higher-order functions.