Re:if...then...else had to be invented (2019)
by flohofwoe on Sunday December 13, 2020 @07:21AM
(#25406093)
Yeah, I bet the mysterious German word was "sonst". "wenn-dann-sonst" ("if-then-else") totally makes sense in German, but also as the default-case in a switch-case-like statement (which is the context mentioned in the article). From that point of view it's a bit of a shame that "switch-case-default" didn't end up as "switch-case-else" ;)
[ Parent
| on HN ]
Re:if...then...else had to be invented (2019)
by Cpoll on Sunday December 13, 2020 @03:43PM
(#25410055)
> From that point of view it's a bit of a shame that "switch-case-default" didn't end up as "switch-case-else" ;)
This makes less sense, though, in a language that permits fall-through or putting 'default' in the middle of the switch statement.