Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
AyanamiKaine
· 8mo ago · 0 comments
I am actually excited for post and pre conditions. I think they are an underused feature in most languages.
Comments
[–]
augustk
8mo ago
Postconditions are in conflict with programmers' love of early returns.
[–]
HelloNurse
8mo ago
Formally, it doesn't appear to be so (tests can be added to each early return); in practice, encouraging the reorganization of messy early returns would be zero cost developer reeducation.