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

I agree with the sentiment of the article, though I don't really like the example given. To me, using a switch statement instead of if-else-if is not any clearer.



I think for that particular example it's bad, but it might work better for a more complicated example with many more cases.




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

Search: