Comment by Leherenn

5 years 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".

This is becoming an increasingly less common strategy for languages to take given the popularity of sum types.