Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

This would be equally clear if the author had just used a sequence of if statements with a 'return' in each one. (Note that Javascript's case has fallthrough, so you can't immediately conclude that only one branch of a case will be executed.)


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

Search: