News for hackers. Stuff that matters.
Re:Why Racket? Why Lisp? (2014) by hither_shores on Friday September 16, 2022 @02:08PM (#32869883)
> 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`

There are no comments on this comment yet.