dart-lang / sdk

The Dart SDK, including the VM, JS and Wasm compilers, analysis, core libraries, and more.
https://dart.dev
BSD 3-Clause "New" or "Revised" License
10.09k stars 1.56k forks source link

Style guide/Dart-formatter: Allow trailing commas in parameter and argument lists. #26649

Closed lrhn closed 7 years ago

lrhn commented 8 years ago

This is the formatting-specific issue for #26644. That issue has the details.

This might warrant an entry in the style guide to say how trailing commas should be used. The formatter needs to handle trailing commas without ignoring them and format according to the style guide (https://github.com/dart-lang/dart_style/issues/509).

munificent commented 8 years ago

This might warrant an entry in the style guide to say how trailing commas should be used.

Eventually, yes, but for now, I want to leave it unspecified and do some ethnography—lets see how the natives decide to use it in the wild.

Thanks for the tracking bug!

munificent commented 7 years ago

Fixed in dartfmt by: https://github.com/dart-lang/dart_style/issues/509

Closing this for the style guide since we don't currently plan to give guidance for this.