9 ms·
> Not to mention a map will always introduce null or option types that you have to handle. It is the same with the switch, at least in C/C++. You either have a
by Leherenn 6y ago
> Not to mention a map will always introduce null or option types that you have to handle.
It is the same with the switch, at least in C/C++. You either have a default, or must list all the possible cases and still return something "at the bottom".
- slaymaker1907 6y agoThis is becoming an increasingly less common strategy for languages to take given the popularity of sum types.