by hintymad · 2y ago · 0 comments
Another reason for YAML is that it is easier to read. That I don't understand either. The endless pain of dealing with configuration does seem come from saving a few seconds of parsing off braces and brackets, but from not being about easily figure out what goes wrong, especially when what's wrong is a missing space or tab embedded in hundreds of lines of configurations.
That said, I think json would benefit from only two things:
1) comments
2) allow extra commas, like ["a", "b", "c",] or {"a":"b", "c":"d", }
or more properly:
{
"a":"b",
"c":"d",
},
EDIT: and json5 does both, plus a few more niceties. (hmm. too much?)