~/talk

Nullable reference types — advanced guide

Talkat DotNext 2019 Moscow · 2019-11-06..11-07· [typescript]
slides:none on file

C# 8 adds nullable reference types as compile‑time annotations only, no runtime checks, and the compiler team spends about 15 person‑years building it. Migrating big projects is incremental: use project/file flags, warnings‑only mode, or opt out per region; Newtonsoft.Json required 170 files, 4000 lines changed as a real example. New features include generic constraints (class?, notnull), the postfix ! “dammit” operator, and System.Diagnostics.CodeAnalysis attributes (NotNullWhen, DoesNotReturn/MemberNotNull, etc.) to teach the analyzer; beware limitations in arrays, generics, dataflow, closures and that defaults remain null.

AI-written summary · about

  1. 0:00Introduction to nullable reference types
  2. 5:05How nullable reference types work
  3. 13:12Working with generics and constraints
  4. 29:44Handling compiler warnings and errors
  5. 43:08Common pitfalls and limitations
  6. 54:53Conclusion and recommendations
~/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.