Re:Typing Nix
by Jweb_Guru on Friday June 23, 2017 @02:29PM
(#14621480)
It makes git diffs inaccurate compared to trailing commas.
[ Parent
| on HN ]
Inserting 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.
Re:Typing Nix
by dragonwriter on Friday June 23, 2017 @09:37PM
(#14623957)
This 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.