4 ms·
> Witness the pain of making JSON fit the type system in a lot of statically typed languages. In something like Java, sure. But Java is to static types as BASI
by hither_shores 4y ago
> Witness the pain of making JSON fit the type system in a lot of statically typed languages.
In something like Java, sure. But Java is to static types as BASIC is to structured programming: the execution is so primitive that reasonable people can be misled into rejecting the concept if that's all they know.
Here's a completely painless encoding of JSON in Haskell:
`data Value = JObject (Map Text Value) | JArray (Vector Value) | JString Text | JNumber Double | JBool Bool | JNull`