You can do it in Scala just by forming the intersection type. Subtyping might get in the way (you "lose" types in the intersection which have a subtyping relationship with another) so you can wrap them in an invariant type constructor to work around that.
-
-
But I want to experiment with an encoding which is an HList of intersection types, where the set represented by the type is the set of things in the head intersection minus the set of types represented by the tail. The HList gets longer the more times you change the same element.
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.