I'm still not sure how easy it will be to remove one type from a union. That would be a gamechanger in error-handling ergonomics.
It might be easier to enforce some constraint which guarantees that the types in the intersection are all proper subtypes of an abstract supertype. This property is true of singleton types, for example.
-
-
Type unions without an effect system aren’t very useful. For exceptions, you’d end up with something like Go’s error handling where you have to handle the exception on each step
-
This Tweet is unavailable.
- Show replies
New conversation -
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.