3 ms·
> Seems to me that using a switch over another structure for performance at the expense of readability or maintainability But is not more readable or even more
by flavoie 8y ago
> Seems to me that using a switch over another structure for performance at the expense of readability or maintainability
But is not more readable or even more maintainable.
Plus there is absolutely no optimization involved, it's just another way of expressing it.
- Scooty 8y agoI was replying to a comment about the performance implications. If you decide on one method over another for performance reasons, I think it's an optimization. > But is not more readable or even more maintainable. Both are a matter of opinion and depend on the specific use-case.