Skip to content

Allow reading/writing tagged tuples more naturally #7

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

Open
z-silver opened this issue Sep 19, 2024 · 0 comments
Open

Allow reading/writing tagged tuples more naturally #7

z-silver opened this issue Sep 19, 2024 · 0 comments

Comments

@z-silver
Copy link
Collaborator

z-silver commented Sep 19, 2024

Right now, the only way to read or write a tagged tuple (with more than just a single payload) is by mapping it to a Zig tuple that has an enum as the first item. Although this works, it doesn't play nice with the type system. Ideally, we would rather map a tagged tuple to a tagged union where the payload is a tuple or an array (but not a slice).

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