~/talk

Leveraging Swift’s Type System

Talkat 360|iDev 2016 · 2016-09-14..09-17· [swift]
slides:none on file

Concrete claims and concrete techniques: Swift’s type system pushes error handling into a result enum with associated values so success and failure are mutually exclusive, and wrapping primitives in validated wrapper types moves format checks from tests and docs into constructors so invalid emails or numbers cannot exist. Phantom-type wrappers make different string IDs noninterchangeable, and replacing subclass grids with protocol+generic downloader patterns removes type explosion and shifts many runtime JSON errors into compile-time mismatches.

AI-written summary · about

  1. 0:00Start
  2. 1:00Leveraging Swift's Type System
  3. 1:361. Why Types? 2. Correctness & Documentation via Types 3. Code Design with Types
  4. 7:39For Each Type a Type System Defines... 1. ... a valid set of values 2. ... a valid set of operations 3. ... a representation
  5. 8:17Asynchronous Error Handling
  6. 12:25the year is 2024, one type remains, String RETWEETS 150
  7. 16:54Phantom Types
  8. 18:54Type Case Study: Modelling JSON Encodable?
  9. 25:16Protocols *** Generics
  10. 25:26Subtype vs. Parametric Polymorphism
  11. 34:34Safe Dynamic Type Checking de Constrained Extensions de
  12. 35:04Types Scale
~/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.