3 ms·
> I never understood how YAML is more human-readable than JSON Two things: comments and multi-line strings.
by thayne 7y ago
> I never understood how YAML is more human-readable than JSON
Two things: comments and multi-line strings.
- throwaway_391 7y agoMy personal JSON Pet hate is: ``` x = [ "Foo", "Foo2", ] ``` Is not valid, but the following is: ``` x = [ "Foo", "Foo2" ] ``` Makes dealing with packer configs feel like punching yourself in the face. I still prefer it over YAMLs awkward initial learning curve.
- zamadatix 7y agoAt first I found it really annoying but then the more I thought about it the more I came to value the "," semantics as proper validation for a "forgot to put the last element in the list" error which would otherwise be silently hidden via the parser.
- throwaway_391 7y agoSo your comment is vaild. Having strict and not-strict validation would be a nice compromise though (: