4 ms·
Yaml is a great data serialization format. The "Norway problem" is not a format problem, it is a PEBKAC.
by throwawaaarrgh 3y ago
Yaml is a great data serialization format. The "Norway problem" is not a format problem, it is a PEBKAC.
- Spivak 3y agoThe norway problem is way overstated, people didn't learn YAMLs reserved words and got mad when it did what it said on the tin. If you know the type specify the type and YAML will happily err when you put a square peg in a round hole. Better yet actually validate the types when you ingest a document! Pfft who would bother with that? Recent versions of Ansible will now force you to do it right and not accept numbers when it expects a string. I believe the Prometheus ecosystem does it as well. When it comes to config formats this is pretty reasonable. People are just primed to expect true/false to be reserved. --- enable_frobulator: yes use_thopojog: no This was also the issue presented in the OP where they were mad that their version which is a string was interpreted as a number because it wasn't in quotes. Like I don't know how you expected YAML to fix that for you. If you don't quote a number in TOML it'll also be wrong.