-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Open
Labels
A-data-typesRFCs about data-typesRFCs about data-typesA-enumEnum related proposals & ideasEnum related proposals & ideasA-sum-typesSum types related proposals.Sum types related proposals.A-typesystemType system related proposals & ideasType system related proposals & ideasT-langRelevant to the language team, which will review and decide on the RFC.Relevant 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.RFCs that have been postponed and may be revisited at a later time.
Description
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
Labels
A-data-typesRFCs about data-typesRFCs about data-typesA-enumEnum related proposals & ideasEnum related proposals & ideasA-sum-typesSum types related proposals.Sum types related proposals.A-typesystemType system related proposals & ideasType system related proposals & ideasT-langRelevant to the language team, which will review and decide on the RFC.Relevant 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.RFCs that have been postponed and may be revisited at a later time.