3 ms·
It all boils down to the context that switch is used. And with the growing popularity of loosely typed languages, it's probably not a good idea to make such swe
by dko 16y ago
It all boils down to the context that switch is used. And with the growing popularity of loosely typed languages, it's probably not a good idea to make such sweeping statements.
- nathanlaan 16y agoAgreed. There are likely cases where using a switch statement is not the optimal approah, but IMO saying that you should never use it over-generalizes.