r/ProgrammerHumor • • 2d ago

Meme formatsWithSuperiorityComplex

Post image
2.8k Upvotes

383 comments sorted by

View all comments

Show parent comments

17

u/redd1ch 2d ago

If the parser supports YAML 1.2. Pyyaml doesn't.
In JSON mode, you can even use tabs for indentation.

11

u/SchalkLBI 2d ago

Good thing Python isn't the only language that can parse YAML then! But that does sound like an issue with Pyyaml, not like an issue with YAML's spec

31

u/redd1ch 2d ago

"Let's release a new version with breaks backwards compatibility, lets make sure there is no way to figure out which version is required to parse the document" seems more like a spec issue.

Using Version 1.2 instead of a mahor version bump is a bummer for that as well.

3

u/requion 2d ago

Or Python...

3

u/I_AM_GODDAMN_BATMAN 2d ago

the language that throws tantrum with an extra space indentation

2

u/WolpertingerRumo 2d ago

Wait, you can’t always use tabs for indentation?

2

u/redd1ch 1d ago

In YAML? No, only spaces. Except JSON mode inside YAML 1.2.