avh4 / elm-format

elm-format formats Elm source code according to a standard set of rules based on the official Elm Style Guide
BSD 3-Clause "New" or "Revised" License
1.31k stars 147 forks source link

(not yet decided) Switch to using trailing commas #100

Open avh4 opened 8 years ago

avh4 commented 8 years ago

There is a proposal to modify elm-compiler to allow trailing commas in tuples, lists and records. If implemented, the official elm style guide will likely change to prefer trailing commas instead of leading commas, and to always add the optional final comma.

avh4 commented 8 years ago

HOW TO HELP: Follow up on getting this merged https://github.com/elm-lang/elm-compiler/pull/1257

gyzerok commented 8 years ago

Personally I've found current way of dealing with commas much more effective. So I am rather against trailing commas idea.

avh4 commented 7 years ago

See also discussion for Rust: https://github.com/rust-lang-nursery/fmt-rfcs/issues/42

Rolograaf commented 7 years ago

When elm-format takes care of any missing comma's and this improves cumbersome copy/paste and commenting-out of lines, I would welcome the change.