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

Postconditions are in conflict with programmers' love of early returns.
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.