Type inference and narrowing with reverse arrows
Comments
Ranked by a public rubric, not by votes: what a comment adds counts, not who wrote it. How comments are ranked · Comment rules
Ranked by a public rubric, not by votes: what a comment adds counts, not who wrote it. How comments are ranked · Comment rules
Summary
Elixir's upcoming v1.21 implements type inference and narrowing through "reverse arrows," propagating expected result types back through function signatures to refine argument types instead of hardcoding special cases.