What would be good is “strict yaml”, that is, yaml with all those weird cases strictly disallowed?
Which would make it backwards compatible, as the cases would just make it invalid “strict yaml”?
And I’m thinking it might already exist? I’m surely not the first one to think of that