Guide137.5K views3,927 votes0 replies1,122 following
Choosing Between Polymorphic Variants and ADTs/GADTs for Heterogeneous Data in OCaml
Guidance on choosing polymorphic variants versus ADTs/GADTs for heterogeneous data in OCaml, with a JSON‑like example and verification steps.