~/talk

Keep Calm and Type Erase On

Talkat try! Swift Tokyo 2016 · 2016-03-10..03-12· [swift]
slides:none on file

Defines a type as a classification of values and legal operations, distinguishes concrete vs abstract types, and shows reification by supplying type parameters. Demonstrates type erasure via an any Pokemon wrapper that lets protocol-with-associated-type values be stored but loses specific type info and adds heavy boilerplate. Notes lack of covariance in Swift, the associatedtype (typealias → associatedtype) change in Swift 2.2, and a production use in the open source library Reis wit Swift / Reese wit for Flux-style StoreSubscriber wiring.

AI-written summary · about

  1. 0:00Introduction to type erasure
  2. 1:27Concrete vs. abstract types
  3. 2:54Type reification
  4. 5:23Generic protocol challenges
  5. 7:54Implementing type erasure
  6. 10:41Downsides and future outlook
  7. 12:45Talk recap
  8. 13:43Q&A session
~/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.