2 ms·
It depends on the context. The context may make the smell go away; the "smell" is just a heuristic that says that without any additional arguments in its favor,
by Sharlin 13y ago
It depends on the context. The context may make the smell go away; the "smell" is just a heuristic that says that without any additional arguments in its favor, a hundred-case switch usually isn't the cleanest and most maintainable way to implement something.