Re:Typing Nix
by mbrock on Friday June 23, 2017 @02:58PM
(#14621772)
How so?
[ 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.