by Klockan · 11y ago · 0 comments
I wrote a long (and unfinished) series about how to interpret category theory with programs on my blog [0], and in [1] I cover universal properties and the coproduct, which describes how you would formulate a "union type" in any category.
[0]: http://jeremykun.com/ [1]: http://jeremykun.com/2013/05/24/universal-properties/
What I'm saying is that languages that do embrace concepts from abstract algebra, are much more expressive than languages that eschew these concepts (like Java).