Towards a more perfect union type
Michał J. Gajda · arXiv (Cornell University) · 2020
We present a principled theoretical framework for dealing with union types, and show its work in practice on JSON data structures. The framework poses a union type inference as a learning problem from multiple examples. The categorical framework is generic, and easily extensible.