Hacker News new | ask | show | jobs
by patsplat 2417 days ago
YAML predated / was concurrent with JSON. Both were in reaction to the bloat of XML.
1 comments

It's funny that YAML spec is three times as long as XML 1.0.
The XML bloat is on the processing side.
Or rather, was. At the time one could either:

- write a sax event based parser that scaled but was low level

- use a DOM parser with a fairly convoluted API. The combination of attributes and children makes for wordy accessors.

Both YAML and JSON provide formats that more readily deserialize into native map / list / string / number types which at the time was quite convenient.