logoalt Hacker News

_ink_today at 9:21 AM1 replyview on HN

There are plenty of problems with YAML as the article shows. The biggest problem with YAML is, that serializer and deserializer need to agree on rules outside of the spec, because otherwise they can be both compliant and still don't understand each other.


Replies

riffrafftoday at 9:34 AM

isn't this true for most formats? You'd use a string to encode a date or version in JSON just like you would in YAML[0].

Either you have an infinite spec, or you always have things outside it.

[0] YAML would allows you to tag the type, but nobody does it anyway