by js_of_ocaml_3 · 3y ago · 0 comments
Elm & PureScript I believe solved this problem.
You can accomplish width subtyping with OCaml's "polymorphic variants", which could be used to emulate TS union types more flexibly than traditional sum types.
What are the features of Elm and Purescript that help model TS that OCaml doesn't have?