Skip to content

Consider some form of extensible enums #409

Open
@zwarich

Description

@zwarich

There are a number of different approaches to making enums more extensible, e.g. extensible sum types, polymorphic variants, and union types. We should survey the landscape of ideas and find one that works best in the context of Rust.

Any concrete proposal should include details of the type system changes (including interaction with other type system features) and in-memory data representation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-data-typesRFCs about data-typesA-enumEnum related proposals & ideasA-sum-typesSum types related proposals.A-typesystemType system related proposals & ideasT-langRelevant to the language team, which will review and decide on the RFC.postponedRFCs that have been postponed and may be revisited at a later time.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions