Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plan for enum discrim, repr, and casting #134

Closed
pnkfelix opened this issue Jan 5, 2022 · 2 comments
Closed

Plan for enum discrim, repr, and casting #134

pnkfelix opened this issue Jan 5, 2022 · 2 comments
Labels
meeting-proposal Proposal for a lang team design meeting T-lang

Comments

@pnkfelix
Copy link
Member

pnkfelix commented Jan 5, 2022

Summary

We have long-standing open issues regarding how/whether one can cast an enum to its discriminant value.

We have found when touching on this topic in the triage meetings that we need a dedicated design meeting to better understand the status quo, where we might go next, and where we want to go.

@jswrenn will work with @pnkfelix on making a document to drive the meeting.

Background reading

rust-lang/rust#88203

rust-lang/rust#60553 (comment)

About this issue

This issue corresponds to a lang-team design meeting proposal. It corresponds
to a possible topic of discussion that may be scheduled for deeper discussion
during one of our design meetings.

@pnkfelix pnkfelix added meeting-proposal Proposal for a lang team design meeting T-lang labels Jan 5, 2022
@fleith
Copy link

fleith commented Mar 15, 2022

Is there any schedule for this? Looking forward to see this feature! :)

@nikomatsakis
Copy link
Contributor

Re-open if still relevant

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
meeting-proposal Proposal for a lang team design meeting T-lang
Projects
None yet
Development

No branches or pull requests

3 participants