4 ms·
All programming is just if statements. That doesn't mean systems can't be complex.
by paxys 7y ago
All programming is just if statements. That doesn't mean systems can't be complex.
- a1369209993 7y agoNot true; if the conditional branch goes backward then it's a (possibly do-) while statement. Also subroutine calls.
- seisvelas 7y agoCounternitpick: Those subrouting calls and while statements are compiled to conditional jmps. If you squint your eyes it's just a fancy 'if'.
- zimpenfish 7y ago"It's no use, @a1369209993 - it's IF statements all the way down!" Apologies to William James' apocryphal quote.
- adrianN 7y agoIf you're creative you can get away without conditional branches: http://www.jucs.org/jucs_2_11/conditional_branching_is_not/Rojas_R.html http://www.jucs.org/jucs_2_11/conditional_branching_is_not/R...