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

Accept trailing commas wherever commas are used as a separator #1074

Open
7 tasks
degory opened this issue Feb 19, 2024 · 0 comments
Open
7 tasks

Accept trailing commas wherever commas are used as a separator #1074

degory opened this issue Feb 19, 2024 · 0 comments

Comments

@degory
Copy link
Owner

degory commented Feb 19, 2024

Anywhere where we require commas to separate items in some kind of list, we should accept (but not require) a trailing comma after the last element in the list.

  • List literals
  • Tuple literals
  • Destructuring left-hand-side patterns
  • Enum members
  • List of variables in a let statement
  • Function and method definition formal argument lists
  • Function and method call actual argument lists
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

1 participant