3 ms·
One step forward, one step back, one step sideways. It's a great idea to have line types, but the treatment of block text is terrible... at least with YAML I ca
by ribit 5y ago
One step forward, one step back, one step sideways. It's a great idea to have line types, but the treatment of block text is terrible... at least with YAML I can embed markdown and have the paragraphs come out correctly. Multiline keys... are they really that important so that we have to jump through awkward looking syntax hoops to get them? And please, why keep inline object definitions? Nobody needs them! It won't kill you to write a list over multiple lines. Some verboseness is good if it enforces structure.
I use YAML quite extensively for an internal tool, since it's pretty much the only human-useable format out there. But the weirdness of the language makes it error-prone while the quality of available parsers is simply unacceptable. I ended up writing my own parser for a subset of unambiguous YAML (not unlike StrictYAML, but even simpler) that offers nice error messages etc. and it works very well for us.