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" ;)
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.
Most German words with the meaning of "otherwise" are pretty long/verbose: "andernfalls" (literally: other-case-d), "ansonsten" (literally: on-others).
"sonst" (short for "ansonsten") might have made an appearance, and I'm struggling to find an English word as short as that (that isn't "else").