~/talk

Why null safety?

Talkat Google I/O 2021 · 2021-05-18..05-20· [developer-experience]
links:none on file
slides:none on file

Null safety arrives in Dart 2.12 inside Flutter 2 as a sound type extension that partitions nullable and non‑nullable variables, uses control‑flow analysis and type promotion, and adds a bang operator and late modifier plus automated migration tools. The compiler proves non‑nullable expressions never produce null, removes redundant runtime null checks, and yields about 90% of existing Dart code already compatible, producing smaller, faster binaries and fewer null‑reference crashes.

AI-written summary · about

  1. 0:00Start
  2. 0:22What Is Null Safety
  3. 5:07Does the Static Analysis Provide Real User Benefit
  4. 6:24Type System Complexity for Nullable Types
  5. 6:59Static Analysis Is Conservative
  6. 9:27Type Promotion
  7. 9:46Control Flow Analysis
~/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.