Consider some form of extensible enums #409
Labels
A-data-types
RFCs about data-types
A-enum
Enum related proposals & ideas
A-sum-types
Sum types related proposals.
A-typesystem
Type system related proposals & ideas
postponed
RFCs that have been postponed and may be revisited at a later time.
T-lang
Relevant to the language team, which will review and decide on the RFC.
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.
The text was updated successfully, but these errors were encountered: