Skip to content
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
Closed
@Iltotore

Description

@Iltotore

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions