r/programming • • Sep 23 '25

The YAML Document from Hell

https://ruudvanasseldonk.com/2023/01/11/the-yaml-document-from-hell
104 Upvotes

27 comments sorted by

View all comments

1

u/[deleted] Sep 26 '25

[removed] — view removed comment

1

u/prehensilemullet May 21 '26

I’ve never run into this but I still think it’s a design mistake and everyone would be better off if they hadn’t designed it this way.

The reason you haven’t had a problem like this with JSON is it’s literally impossible to have this problem with JSON.  There’s only one gotcha I know of with JSON: arbitrary precision numbers are valid, but many parsers don’t actually support them.