~/talk

"Pushing Protocols to Their Limits"

Talkat Mobiconf 2019 · 2019-10-03..10-04· [swift, compilers-and-language-design]
links:none on file
slides:none on file

App code groups transactions into per-day sections using either a Swift array or Realm Results and defines a DateGroupedCollection protocol with an associatedtype Element: DateGroupable. Attempts to store that protocol directly fail, making the feed view controller generic (breaking Interface Builder and @objc extensions) or trying opaque types (some View) which cannot be a stored property. The final solution builds a type erasure wrapper AnyDateGroupedCollection that forwards via closures to DateGroupedArray or DateGroupResults so the controller uses a concrete type.

AI-written summary · about

  1. 0:00Introduction
  2. 0:30Context
  3. 1:25Grouping
  4. 2:44Protocols
  5. 3:56associated types
  6. 4:25standard library examples
  7. 6:01dategroups collection
  8. 6:55feeditems
  9. 8:03Generics
  10. 8:30Issues with Generics
  11. 9:28What are Opaque Types
  12. 9:52Swift UI Example
  13. 10:23Opaque Types
  14. 11:37Date Groups Collection
  15. 11:50Can we infer a concrete return type
  16. 12:43What about Swift UI
  17. 14:16What is a type erase wrapper
  18. 14:50The standard library
  19. 15:08Any collection
  20. 15:53Supporting associated types
  21. 16:37Implementation
  22. 19:00Closure Properties
  23. 22:19Wrapping
  24. 23:12Rename
  25. 24:08Recap
  26. 25:04Summary
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 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
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
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.