2 ms·
> It's not YAML's fault they didn't quote their numerical strings. Yes, it is. If you design a format in such a way that type parsing is ambiguous, or in this
by kelnos 3y ago
> It's not YAML's fault they didn't quote their numerical strings.
Yes, it is. If you design a format in such a way that type parsing is ambiguous, or in this case "keep trying to parse it over and over, starting with the most restrictive option and working your way down", people are going to commit errors. That's just life.
I would absolutely love it if YAML parsers supported a mode where quoting your strings was required. Or, while I'm wishing: a new YAML version that requires that (even though that's impossible to do backward-compatibly without yucky things like having to specify the YAML version in the document itself).
But I do still use YAML for config files, because there's enough about the other options that I don't like even more than YAML.