Push Ifs Up and Fors Down: The Idiom, Its Algebra, and Its Limits

Tiger Style and matklad recommend pushing ifs up and fors down. This post looks at what the idiom actually says, where it shows up in query optimization and in the algebra of functional programs, and where the analogy stops paying for itself.
169 points by speckx 14 days ago debasishg.github.io 79 comments
Summary not yet generated for this article.

Comments (79 of ) ⌛

Loading more comments... ⌛
Scroll down to load more comments
No comments available.
Type to search HN and engineering blog articles
Press Escape to close  |  ↑↓ to navigate  |  Enter to open