~/talk

Swift Quiz

Talkat iOS Conf SG 2023 · 2023-01-12..01-13· [swift]
slides:none on file

Three quick surprises: method bodies dispatch at runtime but default argument resolution is static so a subclass method can print its implementation while using the base class default; structs can mutate constants by reassigning self to a new value (the trick compiles and updates a let property); and an empty enum is actually Never, a real type representing impossible code paths used by fatalError and allowing otherwise empty generics to compile.

AI-written summary · about

  1. 0:00Swift Quiz
  2. 0:23Overridden methods and default value of arguments
  3. 4:19Constant Property and Mutating Method
  4. 7:18Empty Enum
  5. 11:08The Swift compiler is smart enough to understand it and adapt the errors and warnings it will emit in consequence
~/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.