Re:Push ifs up and fors down
by Gadiguibou on Thursday November 16, 2023 @08:50AM
(#38289461)
You can also often encode those checks in the type system like in the Option example near the start of the article.
[ Parent
| on HN ]
Assuming your type system is robust enough to support such things. That's not the case for many mainstream languages.