Skip to content

Idea: equivalent of type-safe pattern matching / type-guards #89

@Krever

Description

@Krever

It would be nice if we could somehow imitate scala pattern matching. Input expression would have to stop being Booleans but would have to start being Option[T] so they can for example detect a subtype. Then such a subtype would have to become available to output.

This is just an idea, I dont know yet how the API for this could look like.

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