Am I the only one who finds YAML much harder to write than JSON or XML? It's not just the fact that I get the syntax for lists and maps confused all the damn time. The worst part is that I'm unable to use the keyboard shortcut for automatically formatting my document! I love that keyboard shortcut! I hate being without it! I'm certain it represents more than half of my key presses in other languages! I type a few cha…
My keyboard shortcut for automatically formatting my documents usually understand the document format or programming language I'm using. If it doesn't then I'm using the wrong editor.
key1: value1 key2: value2
...is supposed to be: key1: value1
key2: value2
? How is it supposed to know if the first is actually what you meant to write?In grammars that aren’t white space dependent (such as JSON), it’s clear what this means:
{ "key1": "value1", "key2": "value2" }