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

Easy enough to remember because this is the simplest thing the language can do, but yeah, I have no idea if this is the same between popular languages.



In the non-Boolean case, a common implementation technique for a large switch with sequential values is a jump table. But that's only possible when all case labels are known.




Consider applying for YC's Spring batch! Applications are open till Feb 11.

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

Search: