Hacker News new | ask | show | jobs
by dwiechert 3320 days 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#s...

1 comments

Is it any better than Yaml? All of those statements are true of yaml and it's much more commonly used.
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.