What SOML fixes:

- Ambiguity. PyYAML turns country: `no` into false, `version: 10.23` into a float (but not 9.5.25), `zip: 01234` into 668 (octal), and `22:22` into 1342. All without warning.

- Keys are always strings. YAML allows integer keys like 1: x, while PyYAML even treats `on: x` as a boolean key, breaking JSON compatibility.

- Duplicate keys are errors. PyYAML silently keeps the last value, while YAML's spec ties duplicate detection to type resolution.

...

mastodon.social ↗

Sign in to like, save or reply.