> Both HOCON and YAML make the mistake of implementing too many features (like anchors, sustitutions or concatenation).
Also this claims to not need escapes, but it's also not clear how this format handles a comma or a newline in strings without escaping, do they act as a comma to separate properties or do they act as natural commas/newlines?
> quoteless strings include everything up to the end of the
> line, excluding trailing whitespace.
(edit: formatting){
foo:one,
bar:two
}Parses to "one," because it is a quoteless string?
What about true and false, is false the boolean constant or a unquoted string "false".
> A value that is a number, true, false or null in JSON is parsed as a value.
> E.g. '3' is a valid number while '3 times' is a string.That's why I remove those features.
Significant whitespace is a normal complaint for beginners in python too, but most people prefer it in the end.
I like how nice config files can look with YAML and JSON being a subset of it makes it even more convenient
JSON spec: http://www.ecma-international.org/publications/files/ECMA-ST...
If you haven't read the JSON spec and you use JSON I recommend doing so. It takes five minutes. My personal favorite line: "Because it is so simple, it is not expected that the JSON grammar will ever change."
Also, they're probably right. I mean JSON isn't pretty, but its easy. Why should I use YAML for prettier config files, when the people looking into those files are all technical anyway.