logoalt Hacker News

vkazanovtoday at 9:48 AM1 replyview on HN

There numerous problems with YAML. It is underdefined, ambiguous, fragile, and is just impossible to write a portable parser for.

JSON is naive, lacks almost everything. But is supereasy to parse and read.

As funny as it sounds, XML is overspecified. Parsing is possible and predictable but supporting the full standard (all of them) is so much work that nobody does it anyway.

So, given the choice above, i'd go for naive simplicity.


Replies

DanielHBtoday at 9:55 AM

There is a subset of yaml which is like 99.9% of all yaml code that is fine.

And then you have whatever the hell OpenAPI uses.

show 1 reply