by pdimitar · 5y ago · 0 comments
Anybody has direct impressions?
Just allow trailing commas at the end of lists. It's much less jarring and unfamiliar.
Trivial? Maybe. But my brain takes a while to adjust to new conventions and I do it way too frequently already.
However, `dhall format` is _very_ opinionated, and will remove it.
{ foo = 3, bar = 4, baz = 5, verylongproperty = 6, dunnoneedsmoremore = 7, howmanytoforcealinebreak = 8 }
And it forces the comma at the beginning of the line, Haskell-style: { foo = 3
, bar = 4
, baz = 5
, verylongproperty = 6
, dunnoneedsmoremore = 7
, howmanytoforcealinebreak = 8
}E.g. for Kubernetes: https://github.com/dhall-lang/dhall-kubernetes