So You Think You Know Swift
summary
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
chapters (12)
- 0:00Introduction
- 0:32Advanced for loop features
- 3:20Swift strings and Unicode
- 7:31Optionals under the hood
- 11:41Enums with associated values
- 17:33Value vs reference types
- 22:08Indirect enums and COW
- 28:09Nominal vs structural types
- 32:21Factories and closures
- 34:28Testing and source location
- 41:00Quick tips and tricks
- 43:05Q&A








