~/talk

Secrets of the Scala Type System

Talkat ScalaIO 2022 · 2022-10-27..10-28· [typescript]
slides:none on file

Concrete rules and failure modes for Scala 3 type lookup: intersection results intersect return types, linearization order decides overrides, union types refuse to synthesize members so union types do not merge members and cause errors unless a common base exists, wildcards cannot be naively substituted and the compiler models them by introducing temporaries and representing type parameters as path‑dependent members so wildcard substitution uses temporary vals, with a demonstrated array mutation crash motivating the design; content draws on Scala 3 compiler work and a PhD formalization.

AI-written summary · about

  1. 0:00Intro
  2. 1:13Member lookup - Type argument in prefix
  3. 3:05Intersection types - Member lookup
  4. 5:04Scala 2 Compound type - Member lookup
  5. 6:18Linearization: when inheritance order matters
  6. 9:13Linearization: more complex example
  7. 11:03Union types - Member lookup
  8. 15:44Wildcards - Member lookup
  9. 16:38Wildcards -Member lookup - Substitution counter example
  10. 20:23Type members - Member lookup - Skolemization
  11. 25:40The wildcard trick - Example
~/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.