Parameter Packs or How Swift Decided to Become C++
summary
Swift 5.9 introduces parameter packs (keywords each/repeat) which removes the old 10-child SwiftUI limit now usable in Xcode 15 (works up to 31–32 children in demos). Examples show building a runtime tuple from arbitrary generics (groupIntoTuple), zipping two independent packs into paired tuples (makePairs), summing counts across collections without a for-loop (totalCount), and an rEqual that short‑circuits via throwing; compilation expands packs at compile time and iteration ergonomics still feel awkward.
AI-written summary · about
chapters (8)
- 0:00Introduction and SwiftUI limits
- 2:50What are parameter packs
- 3:13Use case one grouping into tuples
- 6:03Use case two pairing elements
- 8:31Use case three iterating collections
- 12:03Use case four equality checks
- 14:30Summary and practical use
- 15:34Q&A session
related talks
43m“Variadic expansion in examples"
44mSwift Packages - Dependency Management of the Future
28mUsability Meets Performance in Swift
32m`for_each_argument` explained and expanded
04mGeneralized fold expressions
16mGenerics in Theory and Practice
53mSwift: New Paradigms for iOS Development
16mElements of Functional Programming
