DEV Community

Discussion on: "Type Disjunctions" in Scala

Collapse
 
cacilhas profile image
Montegasppα Cacilhας

You could rely on the Curry-Howard isomorphism, like shown in this article (I did that, and it works pretty).

If you’re daring, you can use Dotty.

Or else you may just deal with every type apart (it isn’t that bad approach).