4 ms·
I'm not sure why but a lot of developers think or are taught that switch statements are old fashioned or even bad.
by sotojuan 10y ago
I'm not sure why but a lot of developers think or are taught that switch statements are old fashioned or even bad.
- ramchip 10y agoProbably because programmers new to OO tend to use them when inheritance/interfaces would be cleaner (case cat, case dog, etc.)