Sep 22, 2021
I could not disagree more. Code is read many more times than is written, and if by some chance you're on vacation and someone else needs to maintain your code, I'd much rather look at the switch statement than the alternative presented.
I live by the mantra of I don't want to know how smart you are; I want to know what your code does. The later or more urgent a production issue is, the more clarity I want when examining code.