5 ms·
Immediate response? I hate commas at the start of lines and I would prefer not to have curly braces in a human editable/readable format. Neither reason is ter
by andybak 7y ago
Immediate response?
I hate commas at the start of lines and I would prefer not to have curly braces in a human editable/readable format.
Neither reason is terribly rational but my first impressions weren't great.
- piotrkubisa 7y agoIt looks that Dhall has been inspired of the Elm language [0] and it's formatter. [0]: https://guide.elm-lang.org/ https://guide.elm-lang.org/
- bvaldivielso 7y agoIt's a common practice in the Haskell community. Knowing where the creator of dhall comes from I would say that that's the source of inspiration
- Gabriel439 7y agoAuthor here: the syntax is inspired by all three of Haskell/PureScript/Elm
- Jeff_Brown 7y ago> commas at the start of lines are not a requirement.
- anentropic 7y agoOTOH I would guess it doesn't allow a trailing comma (same problem as JSON...) so you end up with weird ugly formatting conventions
- Jeff_Brown 7y agoNo, you can use trailing commas if you want.
- singpolyma3 7y agoFinal trailing comma is not in the standard yet, but will be soon
- GordonS 7y agoI get that this makes diffs a tiny bit nicer when adding new lines, if you don't use trailing commas, but christ it's ugly!