Saturday, February 24, 2018

Detecting use-cases for GADTs in OCaml



Before we dive into the GADT implementation lets do a quick review of how to define GADTs in OCaml. Remember that we previously defined the value type like this To define a GADT we need to use a slightly different syntax. The following syntax definition is taken from the OCaml Users Guide.

No comments:

How can you work with a JSON value if you know nothing about it?

I have talked about the difficulty of typing certain JSON values coming from some APIs. The JSON is just very complicated. When I do that,...