This repository was archived by the owner on Jun 5, 2023. It is now read-only.
This repository was archived by the owner on Jun 5, 2023. It is now read-only.
Add exclusion/not type #177
Closed
Description
Suggestion: add a way to exclude a type from an union. This could be caracterised by a "not" type to preserve the already used -
.
Examples:
trait A
trait B extends A
trait C extends A
A & !B
→ A and not B. This is equivalent to A - B
in mathematics.
A | !B
→ A or not B. This is equivalent to *
!A | B
→ Not A or B. Equals to * - (A - B)
in mathematics. It forbids all A
except B
Metadata
Metadata
Assignees
Labels
No labels