What annoys me far more often is the lack of support for trailing commas in JSON.
What annoys me far more often is the lack of support for trailing commas in JSON.
This, 100%! And the lack of comments.
JSON is already strictly worse than XML though as it doesn’t support comments and multi-line strings in a sane way.
But I really don't need philosophy. I know what I want, and I want json with $subj, //comments and optional key quoting. Feels like some people just love making inconvenient things standard and/or teaching others how to live. (I mean the idea "json is not for X" here, not your comment)
And just to be clear: YAML is also not a config format and wasn't meant to be. YAML is for metadata style stuff that is supposed to be close to humans, heck the whole yes/no and "not so strict" typing parts.
If you want a config format you got many options: There is toml/ini and friends on one side and UCL/HCL/... on the other. Or if you want to go really simple, do something like Postgres, Tor, etc. do and just use space separated strings.
Feels like it does 75% of what PRQL does while still staying somewhat backwards compatible. Already works in BQ if you opt in.
It has the small benefit that you never, ever have to worry about running into an old version of a JSON parser that bounces your fancy trailing commas.
Worth it? Not to me but Douglas Crockford does not care what I think. Or you either, apparently.
', '.join(fields)
;)[{},{},,,,{},,
Should be fine. Now you can push things to the eof.
I can use csv or html ofc.