4 ms·
How so?
by mbrock 9y ago
How so?
- viraptor 9y agoInserting a new element with comma-first changes 2 lines: - { old-one + { new-one + , old-one While trailing commas allow you to insert an element anywhere with just one line addition. This doesn't break anything, but it makes looking at "git blame" so much easier.
- dragonwriter 9y agoThis is only true if you insert at the head. And it's not really leading comma placement but the choice to put the first element in the line with the brace that is the culprit, though both are typical of comma-first.
- viraptor 9y agoWith separating comma, it either affects the first or the last position, depending on where you put the commas. But those are the most common places you modify lists.