Re:YAML: probably not so great after all (2017)
by merb on Wednesday June 20, 2018 @05:16PM
(#17359863)
well there is also toml and hocon (json supersets) which are "yaml like"
[ Parent
| on HN ]
Re:YAML: probably not so great after all (2017)
by benatkin on Wednesday June 20, 2018 @05:53PM
(#17360141)
TOML is more like ini than YAML.
I don't like it because it uses the = symbol which seems imperative rather than declarative. (Same with HCL, it might be a nitpick but these are languages I'm going to be using all the time.)
HOCON is interesting but at first glance it seems it might be too ambiguous for my tastes, because like YAML, because it supports both js-style ("//") and shell-style ("#") comments.
JSON plus comments is beautiful because it adds minimally to an unambiguous language which lends itself to automatic formatting (stringificiation).
Re:YAML: probably not so great after all (2017)
by colatkinson on Wednesday June 20, 2018 @06:30PM
(#17360426)
I'd argue that = only feels imperative if you're used to imperative languages. Prolog and Haskell, both of which focus on being declarative, also both use the equals sign.
Re:YAML: probably not so great after all (2017)
by benatkin on Wednesday June 20, 2018 @07:34PM
(#17360858)
Fair enough. It still seems overkill to me though. A ":" seems much more unassuming than an "=".
Re:YAML: probably not so great after all (2017)
by user5994461 on Wednesday June 20, 2018 @07:28PM
(#17360831)
Don't forget HJSON if you want a json clone with comments. https://hjson.org/
Re:YAML: probably not so great after all (2017)
by chx on Wednesday June 20, 2018 @05:20PM
(#17359891)
TOM: Initial release 23 February 2013; 5 years ago
Drupal 8 file format discussion was in 2011, predating it by two years. https://groups.drupal.org/node/159044