faboo 🤓geeky

more keywords

why do (seemingly) all programming languages use rediculously simply selection schemes? take C's if/else, for example:

if( SOME CONDITION )
  do_stuff();
else
  do_other_stuff();

that's pretty demostrative of the general state of things. but why not something like the following:

if( SOME CONDITION )
  do_stuff();
elsif( MORE CONDITION )
  do_more_stuff();
any
  do_in_any_case();
else
  do_other_stuff();

where "elsif" is checked only if the "if" failed, and "any" is executed if _either_ of the above conditions passed (and "else" only if neither passed, obviously).

is that so weird? am I the only programmer who's ever wanted that? I bet it's in PL/1. and hey, if it's good enough for the DoD, it's good enough for me.