~/talk

So You Think You Know Swift

Talkat #Pragma Conference 2024 · 2024-10-29..10-30· [swift]
slides:none on file

Covers concrete Swift tricks and tradeoffs: using case let in for-loops and labeled breaks to simplify control flow, pattern matching and exhaustive switches for enums with associated values, and isKnownUniquelyReferenced COW explaining why Array/String appear value-like but share storage. Demonstrates Unicode-safe string indexing (clown emoji example) and the performance reason for non-integer String.Index, explains optionals as enums/monads and long vs short optional syntax, exposes the 24-byte existential cliff, and shows using initializers as factories and file/line macros to build self‑healing tests and codegen.

AI-written summary · about

  1. 0:00Introduction
  2. 0:32Advanced for loop features
  3. 3:20Swift strings and Unicode
  4. 7:31Optionals under the hood
  5. 11:41Enums with associated values
  6. 17:33Value vs reference types
  7. 22:08Indirect enums and COW
  8. 28:09Nominal vs structural types
  9. 32:21Factories and closures
  10. 34:28Testing and source location
  11. 41:00Quick tips and tricks
  12. 43:05Q&A
~/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.