Live data from Hacker News

Dhall: A Non-Repetitive Alternative to YAML

dhall-lang.org

1–10 of 181 posts

Re: Dhall: A Non-Repetitive Alternative to YAML

#5
post #3
post #2

What's with the commas at the start of lines?

Makes it easier when commenting out. Use this trick for SQL and JS too (to prevent trailing comma issue)

I don't get why you'd build a language in 2019 which disallows a trailing comma in lists.

Re: Dhall: A Non-Repetitive Alternative to YAML

#6
Dhall 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 unnecessarily deviates from common syntax.

Re: Dhall: A Non-Repetitive Alternative to YAML

#7
post #6

Dhall 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 might help you understand where the language is coming from

Re: Dhall: A Non-Repetitive Alternative to YAML

#9
post #7
post #6

Dhall 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…

Weird that it's billed as an alternative to YAML, but effectively has zero roots or influence from YAML. Looks more like an alternative to... whatever configuration language is popular in ML language projects?
Post reply on HN