3 ms·
I'm not sure how dropping comma separators would work in practice, because carriage returns aren't required between array or hash elements in JSON. So this wou
by otterley 10y ago
I'm not sure how dropping comma separators would work in practice, because carriage returns aren't required between array or hash elements in JSON.
So this would also have to be legal:
{ "foo": "bar" "baz": "quux" }
I'm not sure that's better, personally. It's also syntactically invalid in Javascript:
> "bar" "baz"
SyntaxError: Unexpected string
- idunno246 10y agoLet's just remove periods from sentences to They clearly aren't needed since there's a capital letter there If anything I'd rather trailing commas in lists be defined as valid, and separation there is useful like you say
- hutzlibu 10y agoYou could use "line-break" instead - but I also don't see really the point in removing comma's in the first place.