Dhall: A Non-Repetitive Alternative to YAML
dhall-lang.org
Dhall: A Non-Repetitive Alternative to YAML
1–10 of 181 posts
Re: Dhall: A Non-Repetitive Alternative to YAML
#2Re: Dhall: A Non-Repetitive Alternative to YAML
#3What's with the commas at the start of lines?
Re: Dhall: A Non-Repetitive Alternative to YAML
#4What's with the commas at the start of lines?
So it's not so surprising to see it here, seeing as Dhall is written in Haskell.
Re: Dhall: A Non-Repetitive Alternative to YAML
#5Re: Dhall: A Non-Repetitive Alternative to YAML
#6- Why use '=' instead of ':' for attributes? If you used ':', then '=' could be variable assignment and eliminate the need for 'let'.
- Why is there a need for commas?
- Why quote via ticks?! Gee!
- What's with the '{-' and '-}' for comments?! It's like its author decided to differ at any price!
In general, good ideas, but it's too weird and unnecessarily deviates from common syntax.
Re: Dhall: A Non-Repetitive Alternative to YAML
#7Dhall keeps popping up on HN. Here what I don't like about it: - Why use '=' instead of ':' for attributes? If you used ':', then '=' could be variable assignment and eliminate the need for 'let'. - Why is there a need for commas? - Why quote via ticks?! Gee! - What's with the '{-' and '-}' for comments?! It's like its author decided to differ at any price ! In general, good ideas, but it's too weird and unnecessaril…
Colons are used for type signatures.
Commas are presumably required because you can have multi line and nested records. (don't quote me on this, not a parser expert)
The comment syntax is from Haskell.
Not saying this syntax is familiar to everyone, but it is familiar to some. The lineage of the syntax might help you understand where the language is coming from
Re: Dhall: A Non-Repetitive Alternative to YAML
#8If it's truly for end-users (read: non-admin/dev types), you probably shouldn't have them touching configuration files _at all_.
Re: Dhall: A Non-Repetitive Alternative to YAML
#9Dhall keeps popping up on HN. Here what I don't like about it: - Why use '=' instead of ':' for attributes? If you used ':', then '=' could be variable assignment and eliminate the need for 'let'. - Why is there a need for commas? - Why quote via ticks?! Gee! - What's with the '{-' and '-}' for comments?! It's like its author decided to differ at any price ! In general, good ideas, but it's too weird and unnecessaril…
Dhall heavily borrows both ideas and syntax from the ML family of languages. E.g. Haskell, OCaml, Elm, Purescript Colons are used for type signatures. Commas are presumably required because you can have multi line and nested records. (don't quote me on this, not a parser expert) The comment syntax is from Haskell. Not saying this syntax is familiar to everyone , but it is familiar to some. The lineage of the syntax m…
Re: Dhall: A Non-Repetitive Alternative to YAML
#10I 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.