Skip to content

Any plans on making get public? #64

@iK4tsu

Description

@iK4tsu

Although SumType is meant to be a @safe algebraic type, sometimes we might want to extract the value from it directly. If the user knows what value is contained within SumType, then always resorting to match, its heavy usage might become a little tedious to write. I propose making get, or other function, public so that this can be avoided. Such function needs to be @system as it can lead to undefined behavior.

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