Hacker News new | ask | show | jobs
by cosmicexplorer 3719 days ago
yes, but quite a lot of tutorials i've seen / intro to systems courses seem to think it looks "cleaner" to use an if statement; switch is definitely the move here but i've seen the if version quite a lot