Remix.run Logo
frizlab 9 hours ago

Unrelated: why spaces inside the parentheses? It’s not the first time I see this, but this is incorrect!

Sohcahtoa82 3 hours ago | parent | next [-]

Probably someone who writes C/C++ and formats their code that way

    if ( x == ( y + z ) * w ) {
Personally, I find it hard to read.
cromulent 8 hours ago | parent | prev [-]

JSON doesn't have parentheses, but it does have braces and brackets. The JSON spec specifically allows spaces.

> Insignificant whitespace is allowed before or after any token.

frizlab 8 hours ago | parent [-]

I was talking about the parent comment, which has spaces inside the parenthesis (I do prefer no spaces inside brackets and braces in my JSONs, but that’s another story).