Skip to content

Support for Ad-hoc SumType aka tagged Union #8

@karmakaze

Description

@karmakaze

The Java 15 support for Sealed classes works much like an Enum in that you have to know the set of possible types up-front. It is often useful to be able to represent and use an ad-hoc SumType as a union of existing types that don't even belong to the same package/library.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions