3 ms·
one benefit of match over switch is that it uses === and not == internally. So it does not suffer from type coercion problems.
by beberlei 6y ago
one benefit of match over switch is that it uses === and not == internally. So it does not suffer from type coercion problems.