top | item 14315956

(no title)

dwiechert | 8 years 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...

discuss

order

dschep|8 years ago

Is it any better than Yaml? All of those statements are true of yaml and it's much more commonly used.

jitl|8 years ago

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.