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

Did you link the wrong page? It looks like they are advocating switch statements.


If you read down, there are people against them. I didn't know this was a thing. The top comment is saying of course, switch statements are fine. There are other posts if you search for switch in r/JavaScript. This one is probably more indicative:

https://www.reddit.com/r/javascript/comments/3a4ras/how_ofte...




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

Search: