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

[Proposal]: "Closed" enum types #9011

Open
333fred opened this issue Jan 6, 2025 · 0 comments
Open

[Proposal]: "Closed" enum types #9011

333fred opened this issue Jan 6, 2025 · 0 comments
Assignees
Milestone

Comments

@333fred
Copy link
Member

333fred commented Jan 6, 2025

"Closed" enum types

Summary

Related to #485, it would be helpful to be able to declare an enumerated type that is known to the language to be closed. The syntax is an open question, but as a first proposal I'll suggest using closed as in #485.

Design meetings

https://github.com/dotnet/csharplang/blob/main/meetings/2022/LDM-2022-09-26.md#discriminated-unions

@333fred 333fred added this to the Working Set milestone Jan 6, 2025
@dotnet dotnet locked and limited conversation to collaborators Jan 6, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants