3 ms·
also this is probably a nicer intro https://dhall-lang.org/ https://dhall-lang.org/
by tfinch 8y ago
also this is probably a nicer intro https://dhall-lang.org/ https://dhall-lang.org/
- Cyph0n 8y agoWhat is up with the strange comma positioning? I assume that’s just a stylistic choice?
- jtdev 8y agoIt allows each line to be completely independent of it’s neighbors; you can comment and/or add lines without needing to touch neighboring lines. Also, it makes it visually easy to spot missing commas. Give it a try sometime, it’s actually quite nice.
- hazz99 8y agoAlso makes nice file diffs!
- nhooyr 8y agoWouldn't the same thing occur if it wasn't there at all?
- heavenlyblue 8y agoBut they are not independent: first line doesn’t have one.
- yzmtf2008 8y agoWouldn't this also be solved by allowing trailing commas?
- merijnv 8y agoHaving prefixed commas is a rather common style in the Haskell community, because it ends up nicely matching open/closing brackets/braces and lining things up. Since the author of Dhall comes from the Haskell community, he's kept this style.
- Gabriel439 8y agoAuthor here: This is correct. I'm just borrowing a Haskell convention. Also, I like this convention because it leads to vertical alignment of commas.