3 ms·
"The Norway Problem" - had to look it up: https://www.bram.us/2022/01/11/yaml-the-norway-problem/ https://www.bram.us/2022/01/11/yaml-the-norway-problem/ Norw
by yboris 3y ago
"The Norway Problem" - had to look it up:
https://www.bram.us/2022/01/11/yaml-the-norway-problem/ https://www.bram.us/2022/01/11/yaml-the-norway-problem/
Norway abbreviates to "NO" which YAML parses as "false"
- Dylan16807 3y agoThey fixed it a long time ago... except half the implementations haven't updated.
- zaps 3y agoCorrect. It’s not YAML’s fault that the parsers haven’t caught up to its fixes.
- eviks 3y agobut it is YAML's fault that it introduced this silly mistake in the first place
- miffy900 3y agoNo it's YAML's fault - the fact that type coercion was once part of the serialization spec and not part of an adjacent schema spec is a tragic mistake. Now there's a bunch of outdated parsers that exhibit the issue and some that have it fixed. Meaning even more inconsistency and frustration. In an ideal world, YAML just shouldn't exist.