Push ifs up and fors down: The idiom, its algebra, and its limits

·Hacker News··

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.

Read full article →

Related Articles

87% of the Anthropic power will come from gas and 11% from coal in 2028
happosai · Hacker News · 19h ago
Lean verification of the Riemann Hypothesis
g-b-r · Hacker News · 1d ago
Agent swarm trying to solve P vs. NP
bananaflag · Hacker News · 6h ago
Detonating a pile of lead azide
beginning_end · Hacker News · 1d ago
Pill to treat pancreatic cancer hailed as 'biggest breakthrough in decades'
rafaelc · Hacker News · 2d ago