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 multi-element wildcards to tuples and tuple-structs #10365

Closed
brson opened this issue Nov 8, 2013 · 3 comments
Closed

Add multi-element wildcards to tuples and tuple-structs #10365

brson opened this issue Nov 8, 2013 · 3 comments
Labels
C-enhancement Category: An issue proposing an enhancement or a PR with one.

Comments

@brson
Copy link
Contributor

brson commented Nov 8, 2013

In #5830 we decided that all multi-element wildcards in patterns should be represented as .., not *, or .._, but also that tuple and tuple-struct patterns should support ... Add that support - there's a test case in src/test/run-pass/ignore-all-the-things.rs.

@eddyb
Copy link
Member

eddyb commented Mar 12, 2014

The #10124 VG proposal includes ..binding in value lists - function arguments, tuples, tuple structs, enum variants etc. - with an optional binding (capturing multiple values in a tuple), a limited version of that can be added without a complete VG implementation.

@reem
Copy link
Contributor

reem commented Dec 15, 2014

Triage: we now use .. to mark "the rest" of something during a pattern match, so I think this can be closed.

@steveklabnik
Copy link
Member

Agreed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-enhancement Category: An issue proposing an enhancement or a PR with one.
Projects
None yet
Development

No branches or pull requests

4 participants