Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Comment
by
deredede
· 1y ago · 0 comments
"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.
Comments
No comments yet.
Better HN