Comment by brigandish

3 years ago

I much prefer this style, I use it wherever I can because I can comment out lines without a trailing comma causing a syntax error. SQL, Ruby… wherever I can.

Try it, I doubt you'll go back (unless someone's stupid parser doesn't let you).

You can do the same, if your language allows a final comma.

(And that's what the comment you reply to suggests: make Dhall allow a final comma.)

  • What's the point of allowing a trailing comma? A delimiter symbol is a delimiter symbol, be it a an opening curly brace or a comma between elements, and one can simply align delimeters.

    • The main point is to make git diffs smaller when adding or removing elements, I think.