Skip to content

Terminating comma syntax isn't supported for tuples in pattern matches. #7358

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

Closed
mstewartgallus opened this issue Jun 24, 2013 · 3 comments
Closed
Labels
A-grammar Area: The grammar of Rust A-parser Area: The lexing & parsing of Rust source code to an AST

Comments

@mstewartgallus
Copy link
Contributor

For example, one can do let (x, y) = (0, 4,); x but not let (x, y,) = (0, 4,); x which is is inconsistent and annoying when implementing macros.

@bstrie
Copy link
Contributor

bstrie commented Jul 12, 2013

If we're going to be consistent, then we need to commit to allowing trailing commas everywhere that commas can appear (such as function definitions).

Nominating for Well-Defined.

@huonw
Copy link
Member

huonw commented Sep 3, 2013

Triage: still not parsed.

This issue is similar to #6506, #8788, and (less so) #5905.

@catamorphism
Copy link
Contributor

Accepted for milestone 1, well-defined

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-grammar Area: The grammar of Rust A-parser Area: The lexing & parsing of Rust source code to an AST
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants