Using OCaml Polymorphic Variants for Extensible Data Structures
Learn how OCaml polymorphic variants let you add constructors without editing existing type definitions, illustrated with a JSON‑like parser that stays unchanged when a Boolean tag is added.