It may or may not be that switches are sometimes unrolled to loop tables. However, until one knows the performance concerns of a section of code, one should write code principally for other humans, and not the computer. Agreeably, switch is often pretty clear.
C//
|