6 ms·
My personal JSON Pet hate is: ``` x = [ "Foo", "Foo2", ] ``` Is not valid, but the following is: ``` x = [ "Foo", "Foo2" ] ``` Makes dealing with packer
by throwaway_391 7y ago
My 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 (: