Skip to content

Set-theoretic tuple types (using lists) #13752

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

Merged
merged 7 commits into from
Aug 1, 2024

Conversation

gldubc
Copy link
Member

@gldubc gldubc commented Jul 31, 2024

This is a rewrite of #13576 that uses lists instead of relying on the map type implementation.

It adds to the Descr fixed-size tuple types such as {:ok, binary(), integer()} and open tuple types (such as {atom(), boolean(), ...}, which represent every tuple of at least two elements that are an atom and a boolean).

Tuples are now encoded as pairs {tag, elements} where element is a list of types.

@josevalim josevalim merged commit 4629fb6 into elixir-lang:main Aug 1, 2024
9 checks passed
@josevalim
Copy link
Member

💚 💙 💜 💛 ❤️

@gldubc gldubc deleted the tuples-with-list branch August 1, 2024 15:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants