In Scala, is it possible to "subtract" a type from a composed type like this one: "A with B with C" ?

-
-
You would just need to normalize the type before applying the Negation, it doesn't seem like an insurmountable problem to me at all
-
I think you're misreading... there are literally two distinct solutions for x in that example, regardless of whether you normalize (plus potentially others). This could work if type intersections formed a free monoid, but it's not free...
- 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.