~/talk

Polymorphism Unbound

Talkat Strange Loop 2022 · 2022-09-22..09-24· [typescript]
slides:none on file

Claims that polymorphism is essentially a type that represents multiple types and demonstrates concrete examples and tradeoffs across C++, Java, Python, Kotlin, Scala, Rust and Go. Provides runnable examples in GitHub repo: polymorphism Unbound and shows what compilers actually check: C++ templates and Kotlin generics compile time, JVM erasure that prevents returning precise types, Scala 3 and Python unions with exhaustiveness checking and Python structural typing that fails at runtime. Rust compiler helps debug examples so the patterns actually compile or fail.

AI-written summary · about

  1. 0:00Start
  2. 3:06How did we get here?
  3. 14:28Subtype Polymorphism
  4. 17:16Multiple Inheritance
  5. 21:40Parametric Polymorphism (Generics)
  6. 38:41Code Reuse with Inheritance
~/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.