4 ms·
Maybe language changed since then, but to me 'else' sounds right and 'or' sounds wrong: IF (condition) THEN (do-this) ELSE (do-that). I think 'or' would n
by captainmuon 4y ago
Maybe language changed since then, but to me 'else' sounds right and 'or' sounds wrong:
IF (condition) THEN (do-this) ELSE (do-that).
I think 'or' would not go with alternative commands, but with an alternative condition:
IF (condition) THEN (do-this) OR (other-condition) THEN (do-that).
If you don't want to use 'else' then 'otherwise' would sound idiomatic, too.
- smcl 4y agoRemember that there’s already two commonly used elements of logic and programming (bitwise OR, logical OR) that may well form part of condition/other-condition, so while if/then/or may (subjectively) scan a little better in isolation, I think “else” might have been the right call