Conversation

Automatically generating a JSON parser from types is such a killer feature I don’t even think that much about until I have to interact with a third-party HTTP API and suddenly have to write reams and reams of code to very carefully ensure the data is the right shape.
6
226
I think a lot of the time this kind of thing happens because the language in question does not have a syntax for writing types down. Which is an interesting point: even ignoring the benefits of static typechecking, statically-typed languages come with a schema notation built-in!
1
14
Show replies