Hacker News new | ask | show | jobs
by cjalmeida 3000 days ago
YAML can be pretty confusing at times.
1 comments

I have the great fortune of dealing with YAML every day. The sheer number of ways in which string literals can exist is eye-opening, as is the interpretation differences across libraries. That the YAML spec has not been updated in a decade is icing on top.
I wrote this because while I like the basics of YAML, I think 95% of the spec is idiotic and needs to be tossed away:

http://hitchdev.com/strictyaml

Ideally there should only be one scalar type (strings), two ways to represent strings (simple | multiline), just one way to represent mappings and lists. No nodes/anchors, no "YAML is a superset of JSON" silliness and absolutely no implicitly typed scalar values.