I wonder sometimes if other people find #json as pedantic as I do.

it's a fine storage and wire protocol. Typing it by hand? I get so tired of having it mis-parse because I left a comma out somewhere.

Not even JavaScript penalizes you for excess commas at the end of lists or object property bodies anymore.

Follow

@mark not really? Like, I want a format to be persnickety about shit like that so I don't have to account for variance in my code.

@2ck Ah, see, I don't care about variance because I have never written a JSON parser in my lifetime and I don't intend to. I'd like the language to be friendlier for human access at the cost of slightly more parser complexity (but not much).

(... and this isn't the kind of persnickety that I find to be a major challenge to parse. Treating , ] tokens and ] tokens (or , } and }) as equivalent inputs to the state machine doesn't feel hard... Though I've never written a JSON parser and I don't intend to so maybe I'm wrong? 😉 But I've written similar parsers and it wasn't hard to alias those patterns).

JavaScript figured it out.

Sign in to participate in the conversation
Qoto Mastodon

QOTO: Question Others to Teach Ourselves
An inclusive, Academic Freedom, instance
All cultures welcome.
Hate speech and harassment strictly forbidden.