Yaml is total garbage. I’m not sure what is best, but it ain’t yaml. The Norway problem is unforgivable.
https://www.bram.us/2022/01/11/yaml-the-norway-problem/
Norway abbreviates to "NO" which YAML parses as "false"
Ok you win. What a joke of a configuration language.
Similarly in xml it’s a curse that
<Foo><Bar>1</Bar></Foo>
and <Foo Bar=”1” />
are semantically the same but considered different in most systems.Just avoid ambiguity and make it impossible to face a choice. The same semantic meaning should have one expression.
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.