4 ms·
well there is also toml and hocon (json supersets) which are "yaml like"
by merb 8y ago
well there is also toml and hocon (json supersets) which are "yaml like"
- chx 8y agoTOM: 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 https://groups.drupal.org/node/159044
- benatkin 8y agoTOML 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).
- colatkinson 8y agoI'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.
- benatkin 8y agoFair enough. It still seems overkill to me though. A ":" seems much more unassuming than an "=".
- user5994461 8y agoDon't forget HJSON if you want a json clone with comments. https://hjson.org/ https://hjson.org/