5 ms·
I will die on the hill that TOML should be used for the vast majority of what YAML's used for today. There are times a full language is needed, but I've seen so
by PollardsRho 1y ago
I will die on the hill that TOML should be used for the vast majority of what YAML's used for today. There are times a full language is needed, but I've seen so many YAML files that use none of the features YAML has with all of the footguns.
- aiiizzz 1y agoBut toml isn't any better than yaml. It's difficult to read
- Xiol32 1y agoTOML is worse and even harder to read. I'd take YAML any day over TOML.
- bloppe 1y agoYaml is a sad Icarus parable. The syntax is great but the type inference is too much. I don't see why we have to throw the baby out with the bathwater and settle for toml, though. Here's how yaml's type inference should work: - All object keys are strings (with or without quotes) - Value atoms are parsed the exact same way as in JSON5 I'm kinda shocked this isn't a thing. StrictYAML is cool but a bit too cumbersome IMO.
- mdaniel 1y agoThe thinking that would lead one to the conclusion of "yeah, fine, pick whatever characters you want for the string contents" is a "you are I are solving different problems" https://github.com/toml-lang/toml/blob/1.0.0/toml.md#user-content-string:~:text=TOML%20parsers%20should%20feel%20free%20to%20normalize%20newline%20to%20whatever%20makes%20sense%20for%20their%20platform https://github.com/toml-lang/toml/blob/1.0.0/toml.md#user-co...