3 ms·
I don't mind YAML. I dislike that something things become strings and sometimes they become other types: foo: bar # {"foo":"bar"} foo: "bar" # {"foo":
by jrockway 8y ago
I don't mind YAML. I dislike that something things become strings and sometimes they become other types:
foo: bar # {"foo":"bar"}
foo: "bar" # {"foo":"bar"}
foo: 42 # {"foo":42}
foo: "42" # {"foo":"42"}
Other than that, no major complaints. My editor understands YAML and shows the indentation level in the background (highlight-indentation-mode) and auto-formats files so they all have consistent indentation (prettier-mode). As a result, it is not much of a nightmare to edit, despite the fact that semantic whitespace COULD cause you a lot of problems.
- aldanor 8y agoHow about... foo: yes # "foo": true bar: YEs # "bar": "YEs" baz: YES # "baz": true
- jrockway 8y agoYeah, that's a little crazy. It's the classic case of in-band signalling. It never works. I wish quotes around strings were mandatory, then having 83 ways to say "true" would be OK. But when strings randomly get upgraded to other primitive types... it's a little weird.