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

Therefore, the inverse operation of "intersecting with A" is not well-defined. In general, if you "remove" A from A with B, you're left with... A with B. (2/2)
-
-
That doesn't strike me as true, `A with B` represents the set intersection. `A | B` represents set union. You claim idempotency is why you can't have negation, but both intersection and union are idempotent!
-
In terms of algebra, union and intersection types form a bounded distributive lattice. If we were to add negation, it would turn it into a boolean algebra. Certainly not impossible :)
- 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.