News for hackers. Stuff that matters.
Re:Typing Nix by cwyers on Friday June 23, 2017 @03:55PM (#14622243)
But there's always a line without a comma -- comma-last has it on the last line instead of the first. So you can have the same line-swapping problem in either arrangement. Comma first just makes it easier to spot.
Re:Typing Nix by icebraining on Friday June 23, 2017 @04:19PM (#14622420)
But there's always a line without a comma -- comma-last has it on the last line instead of the first.

Not if the language allows trailing commas on the last line, like Python and Go do.

Re:Typing Nix by coldtea on Saturday June 24, 2017 @06:20AM (#14625104)
Not if you allow dangling commas (trailing commas as the sibling comment calls them, I think it's the more generic term)...

Then you have a comma at the end in ALL lines, including the last one, without an issue. That was what I proposed above (and lots of languages do it, I think JS is adding it too).