4 ms·
From the article "However, if the case expressions are noncontiguous values, most compilers translate the switch statement as a comparison chain." The recommen
by anamax 18y ago
From the article "However, if the case expressions are noncontiguous values, most compilers translate the switch statement as a comparison chain."
The recommendationi in that case seems to be to write the comparison chain yourself. How is my comparison chain better than the compiler's?
- ConradHex 18y agoYeah, totally. I hate to be cynical, but #6 seems bogus.