Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
cubefox
on Nov 16, 2023
|
parent
|
context
|
favorite
| on:
Push ifs up and fors down
The pushing-ifs-up assumes you are using a language where objects aren't nullable. This doesn't apply to most languages. Otherwise we would just get a potential null pointer exception when we don't check for null inside the function.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: