10000 SIP-27: Trailing Commas, revised document by dwijnand · Pull Request #625 · scala/docs.scala-lang · GitHub
[go: up one dir, main page]

Skip to content

SIP-27: Trailing Commas, revised document #625

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 11 commits into from
Nov 25, 2016
Merged
Prev Previous commit
Next Next commit
SIP-27: Try & clarify the drawbacks of whole grammar trailing comma s…
…upport
  • Loading branch information
dwijnand committed Nov 24, 2016
commit fbf4172f322fcfefe38bf4d5c3eb0cb697217c20
2 changes: 1 addition & 1 deletion sips/completed/_posts/2016-06-25-trailing-commas.md
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ With this proposal I would like to present 2 variants:

1. The first variant adds trailing comma support to only multi-line `ArgumentExprs`, `Params` and `ClassParams`, which I consider to be the parts of the grammar that would most benefit from trailing commas.

2. The second variant adds trailing comma support to the whole grammar (again, only for multi-line), which means more consistency, but also supporting trailing commas in places that doesn't really need it, such as `ids`.
2. The second variant adds trailing comma support to the whole grammar (again, only for multi-line), which means more consistency, but also supporting trailing commas in places that in practice don't really require it as much, such as `ids`.

In this proposal, only the first variant is considered: trailing comma support for `ArgumentExprs`, `Params` and `ParamClasses` for the sake of simplicity.

Expand Down
0