~/talk

Swift WTF: Weirdness, traps, and fixes

Talkat try! Swift Tokyo 2025 · 2025-04-09..04-11· [swift]
slides:none on file

Expect specifics: binary floating math shows 0.1 + 0.2 != 0.3 so use Swift Numeric or use a Decimal type for exactness; operator precedence makes -10^2 evaluate as -(10^2) so add parentheses to get (-10)^2; copying an implicitly unwrapped optional drops its IUO flag so treat it as a regular optional or stop using IUOs; Array syntax can create IndexPath when Foundation is present so comparative operators behave differently—use lexicographicallyPrecedes or make comparisons explicit; emoji flag replacement breaks with Objective‑C APIs, prefer Swift native string APIs.

AI-written summary · about

  1. 0:00Swift WTF intro
  2. 2:07Floating point surprises
  3. 6:45Operator precedence pitfalls
  4. 9:13Implicitly unwrapped optionals
  5. 10:43Foundation array comparisons
  6. 13:39Emoji flag replacement bug
  7. 18:23Summary and help in Japan
~/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.