Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
tudelo
on June 27, 2018
|
parent
|
context
|
favorite
| on:
Anti-If: The missing patterns (2016)
I believe this is commonly referred to as a guard clause? I tend to prefer writing things this way too... but I could see an argument for putting something in an else block instead of just leaving it there.
Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: