Y
Hacker News
new
|
ask
|
show
|
jobs
by
AyanamiKaine
78 days ago
I am actually excited for post and pre conditions. I think they are an underused feature in most languages.
1 comments
augustk
77 days ago
Postconditions are in conflict with programmers' love of early returns.
link
HelloNurse
77 days 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.
link