~/talk

Property Wrappers or How Swift decided to become Java

Talkat App Builders 2020 · 2020-05-11..05-12· [swift]
slides:none on file

Shows concretely what Swift property wrappers do: implementable in Swift 5.1 to have the compiler synthesize access to a property via @propertyWrapper and a wrappedValue getter/setter, and expose the wrapper via $projectedValue. Builds examples that work: clamped numbers, trimmed strings, versioned history with timestamps, UserDefaults-backed properties, a caching wrapper for pure functions and an experimental GET-network wrapper that generates URLSession calls. Notes limits: wrappers cannot throw or annotate parameters today and can hurt readability if overused.

AI-written summary · about

  1. 0:00Intro
  2. 2:20Kotlin & Java Annotations
  3. 4:19SE-0258
  4. 5:34Clamping Numerical Values
  5. 8:43Compiler Magic
  6. 12:13Trimming Characters
  7. 14:15Data Versioning
  8. 18:11User Defaults
  9. 22:09Functional Programing in Swift
  10. 23:16Caching Pure Functions
  11. 26:56Property Wrappers & Functions
  12. 32:33Recap
~/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.