r/ProgrammerHumor • • 5d ago

Meme formatsWithSuperiorityComplex

Post image
3.0k Upvotes

401 comments sorted by

View all comments

Show parent comment

17

u/redd1ch 5d ago

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

11

u/SchalkLBI 5d 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 5d 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 5d ago

Or Python...

3

u/I_AM_GODDAMN_BATMAN 5d ago

the language that throws tantrum with an extra space indentation

2

u/WolpertingerRumo 5d ago

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

2

u/redd1ch 5d ago

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