by avsteele · 5y ago · 0 comments
Here were my thoughts on the options.
JSON - No comments -> impossible
XML - Unreadable
YAML - 2nd place. Meaningful indentation also made me worried someone was going to not understand why their file didn't work. The lack of quotes around strings was frustrating.
TOML - 1st place. Simpler than YAML to read & parse. It truly seems 'obvious' like the name says.
I haven't encountered any situations where I wish I had more than TOML offers.
Check this thread:
https://news.ycombinator.com/item?id=17523194
I don't see Kubernetes switching to TOML anytime soon!
More people should give it a try. Very reminiscent of old Windows INI files and Java properties.
All we need is to revise official JSON standard(ECMA 404) to include comments.
It’s not essential, but if we’re already changing the format we might as well?
That would be a step back for GitLab CI, GitHub Actions, Kubernetes, Google App Engine, and a bunch of other projects which use YAML and seldom encounter the Norway problem. https://hitchdev.com/strictyaml/why/implicit-typing-removed/
It is pretty niche, but attempts to improve upon JSON in a multitude of ways, one of which is the support for comments: https://spec.json5.org/#comments
http://hyperrealm.github.io/libconfig/libconfig_manual.html#...
It does need an XPath traversal and search query format for application use and data references.