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

Add associated data to enum variants #23

Open
ecton opened this issue Jul 30, 2024 · 0 comments
Open

Add associated data to enum variants #23

ecton opened this issue Jul 30, 2024 · 0 comments

Comments

@ecton
Copy link
Member

ecton commented Jul 30, 2024

Enum variants should be able to contain associated data like in Rust. Whether this is just a shorthand for embedding a structure or whether this is an independent type system feature is yet to be figured out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant