~/talk

The Secrets of Polymorphic Variants

Talkat ReasonConf 2019 · 2019-04-11..04-13· [typescript]
slides:none on file

Claims that polymorphic variants (OCaml/Reason structural typing) let functions accept differently named but structurally identical records, shows a quick hack to recover hidden record types by assigning a bogus value so the compiler prints fields, demonstrates that the project uses ocaml decoders to parse megabytes of JSON and that structural typing enables structural typing for cross-library JSON interop, and warns that while reuse works the cost is that error messages explode into huge unnamed object types making debugging painful.

AI-written summary · about

  1. 0:00Start
  2. 3:17Polymorphic Variance
  3. 3:41Polymorphic Variants
  4. 7:17Jason
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.