News for hackers. Stuff that matters.
Re:TOML – Tom's Obvious, Minimal Language by quotemstr on Thursday September 10, 2020 @09:17PM (#24438236)
YAML and TOML wouldn't have been necessary if JSON had been slightly more expressive. If JSON had

  * comments
  * bareword (not double quoted) object key names
it'd be a much more suitable configuration file format for everything, and I don't think we'd see the motivation to make things like TOML and YAML.
Re:TOML – Tom's Obvious, Minimal Language by Anaminus on Thursday September 10, 2020 @09:27PM (#24438278)
JSON5 pretty much addresses all the problems with JSON as a config format. I'd love for it to just replace JSON entirely.

https://json5.org/

Re:TOML – Tom's Obvious, Minimal Language by quotemstr on Thursday September 10, 2020 @09:34PM (#24438314)
Generally looks good, but ugh, I dislike allowing single quotes. Allowing single quotes has close to zero ergonomic value but increases the number of ways to write the same fundamental thing.

But that's a minor quibble. If everyone adopted this thing instead of legacy JSON, we'd be better-off.

Re:TOML – Tom's Obvious, Minimal Language by gridlockd on Friday September 11, 2020 @10:11AM (#24443030)
Having two ways to quote is a useful feature, not just one way to do the same thing.

Javascript already has this, so allowing single quotes simplifies copypasting object literals, which is a common use case.

Re:TOML – Tom's Obvious, Minimal Language by tornato7 on Thursday September 10, 2020 @09:37PM (#24438333)
That looks really nice. I might start using it for configuration.
Re:TOML – Tom's Obvious, Minimal Language by fanf2 on Friday September 11, 2020 @05:07AM (#24440586)
YAML and JSON are about the same age: YAML dates from 2001 and JSON 2001/2.
Re:TOML – Tom's Obvious, Minimal Language by ratbeard on Thursday September 10, 2020 @09:43PM (#24438371)
Yep. And trailing commas,
Re:TOML – Tom's Obvious, Minimal Language by rootlocus on Friday September 11, 2020 @08:37AM (#24442049)
I never realized I would want this so much.
Re:TOML – Tom's Obvious, Minimal Language by afiori on Friday September 11, 2020 @02:59AM (#24439880)
or also no commas at all