Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
deredede
77 days ago
|
parent
|
context
|
favorite
| on:
Push Ifs Up and Fors Down
"Moving preconditions up" means moving the
code
that checks the precondition up. The precondition still needs to be documented (in the type system is ideal, with an assertion otherwise, in a comment if necessary) close to where it's assumed.
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: