Type inference and narrowing with reverse arrows
This article explains how Elixir implements type inference and type narrowing using reverse arrows: a small set of composable ideas, rather than special cases hardcoded into the type checker. Thanks to this work, the upcoming Elixir v1.21 passes all tests in the If-T: Type Narrowing Benchmark by Guo et al.. This means v1.21 can find even more sure bugs in existing Elixir programs and, once type signatures are introduced, narrowing will give us more precise types and fewer false positives.
✓ Verified working
Checked Nov 20, 2026 · 339ms
📝 Your Private Notes & Highlights 🔒 Only visible to you
Log in or create a free account to keep private highlights and personal notes on your saved pins.
Creator Trophy & Press Kit
Featured on Storesso
Are you the creator of elixir-lang.org? Share your verified feature badge on your website, or export a custom 4:5 editorial social card for Instagram and X.
4:5 Social Studio
Generate a 1080×1350 vertical high-res feature card tailored for social sharing.
Instagram & X Feature Card
Export a polished, high-resolution 4:5 editorial graphic displaying your verified inclusion in the Storesso Discovery Index. Perfect for launch threads, founder updates, and newsletters.
Rendered at 1080×1350px (Retina ready) · No attribution watermark required.