Re:HOCON – Human-Optimized Config Object Notation
by dschep on Thursday May 11, 2017 @10:47AM
(#14316389)
Is it any better than Yaml? All of those statements are true of yaml and it's much more commonly used.
Re:HOCON – Human-Optimized Config Object Notation
by jitl on Thursday May 11, 2017 @11:45AM
(#14316926)
The two differences from YAML that seem obvious are "includes" which reference other files, and drawing values in a HOCON file from an environment variable.
Both to me seem easily encoded using YAML's support for custom types.
- It's a superset of JSON - so you can just write JSON if you don't want to change
- The ability to add comments
- Multi-line strings with the use of Scala's triple-quotes
- Reference other values with the use of in-line variables - https://github.com/typesafehub/config/blob/master/HOCON.md#s...