~/talk

Confusion Optional

Talkat 360|iDev 2016 · 2016-09-14..09-17· [swift]
links:none on file
slides:none on file

Explains how Swift optionals are implemented as an enum with cases .none and .some and why nil means “nothing” for any type, not zero; demonstrates initialization, force-unwrapping risks that cause crashes, and safe unwrapping with if let / guard optional binding; covers nil-coalescing '??' as a concise defaulting tool, optional chaining always returns an optional, implicitly unwrapped optionals for deferred initialization, how collections and Core Data queries produce nested optionals, and when each technique actually works.

AI-written summary · about

  1. 0:00Start
  2. 2:57Unwrapping Optional Binding
  3. 5:49Strict type system - 'nothing' is problematic
  4. 44:26QUESTIONS?!?
~/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.