Hacker News new | ask | show | jobs
by the_duke 3554 days ago
TOML is my preferred config file format.

It has all the benefits of JSON and YAML, but it's not so complicated to parse and does not depend on indentation.

https://github.com/toml-lang/toml

1 comments

> It has all the benefits of JSON and YAML...

Well, except that you have to quote strings.

As you always have to do in JSON, and sometimes have to do in YAML.
Sorry, I should have clarified that I was referring to YAML. JSON is inferior to both TOML and YAML as a config language.

In YAML, yes, you sometimes have to quote strings, but most of the time you don't.