Hacker News new | past | comments | ask | show | jobs | submit login

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?




Yeah, totally. I hate to be cynical, but #6 seems bogus.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: