3 ms·
One reason to not add it might be that it makes the language larger and more complex. Also, the semantics of match are a bit different than the similar switch,
by arp242 6y ago
One reason to not add it might be that it makes the language larger and more complex.
Also, the semantics of match are a bit different than the similar switch, since match does strict type checking and switch doesn't. While this isn't bad as such, it's kinda confusing that the language doesn't behave consistently.