Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(78)

Issue 23451037: Optional trailing comma support for list and map literals. (Closed)

Created:
7 years, 3 months ago by pquitslund
Modified:
7 years, 3 months ago
Reviewers:
Brian Wilkerson
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Optional trailing comma support for list and map literals. R=brianwilkerson@google.com Committed: https://code.google.com/p/dart/source/detail?r=27350

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+29 lines, -3 lines) Patch
M pkg/analyzer_experimental/lib/src/services/formatter_impl.dart View 4 chunks +11 lines, -3 lines 0 comments Download
M pkg/analyzer_experimental/test/services/formatter_test.dart View 1 chunk +18 lines, -0 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
pquitslund
7 years, 3 months ago (2013-09-10 18:24:51 UTC) #1
Brian Wilkerson
LGTM
7 years, 3 months ago (2013-09-10 18:29:51 UTC) #2
pquitslund
Committed patchset #1 manually as r27350 (presubmit successful).
7 years, 3 months ago (2013-09-10 18:34:10 UTC) #3
kevmoo-old
On 2013/09/10 18:34:10, pquitslund wrote: > Committed patchset #1 manually as r27350 (presubmit successful). What's ...
7 years, 3 months ago (2013-09-10 18:53:23 UTC) #4
pquitslund
7 years, 3 months ago (2013-09-10 19:48:06 UTC) #5
Message was sent while issue was closed.
On 2013/09/10 18:53:23, kevmoo wrote:
> On 2013/09/10 18:34:10, pquitslund wrote:
> > Committed patchset #1 manually as r27350 (presubmit successful).
> 
> What's the plan around flags for formatter?

The plan is to delay the need for flags as long as possible! :)  And when my
back is against the wall, I'll argue strongly for as few as possible.

> While I could see some wanting trailing commas to be left in, I'd always opt
to
> have them removed.

As would I.  Having said that, it's an open question as to whether this is the
formatter's job.  This might be be better handled in the editor itself by way of
style/formatting 'hints' with resolutions that perform the translation.  Anyway
(and either way), we'll want to consider other transformations (such as
translations to the short method body form, =>).

Curious where you weigh in?

Powered by Google App Engine
This is Rietveld 408576698