4 ms·
We use HOCON for one of our projects and I enjoy working with it. Some of the things I like are: - It's a superset of JSON - so you can just write JSON if you
by dwiechert 9y ago
We use HOCON for one of our projects and I enjoy working with it. Some of the things I like are:
- 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#substitutions https://github.com/typesafehub/config/blob/master/HOCON.md#s...
- dschep 9y agoIs it any better than Yaml? All of those statements are true of yaml and it's much more commonly used.
- jitl 9y agoThe 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.