Hacker News new | ask | show | jobs
by jimjimjimjim 1893 days ago
I think the beauty of the switch statement is that when you see one you know you're just concentrating on the value of one variable. I think the if else if is actually cleaner for the user example in the post.