|
|
|
|
|
by hither_shores
1375 days 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` |
|