Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
mschuetz
on Aug 19, 2019
|
parent
|
context
|
favorite
| on:
Using ‘switch’ to match arbitrary logic instead of...
I find if preferable to switch all the time. Switch needs two indents and virtually always that extra break, which makes it more complex all around than a simple if.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: