~/talk

Exploring Records and Patterns

slides:none on file

Dart 3 adds records and pattern matching: records have named and positional fields implemented in the compiler with generated equals/hashCode and immutability, requiring a trailing comma for single-value records; destructuring works for records, lists and maps but fails at runtime if shapes mismatch. Examples show cross-library compatibility by form (point/coordinate), a small geometry library built to prove it, and workarounds like immediately-invoked functions for multi-line switch expressions return values; data classes remain the top requested feature.

AI-written summary · about

  1. 0:00Introduction to Dart features
  2. 2:57Understanding Dart records
  3. 11:50Destructuring records and objects
  4. 24:17Pattern matching in Dart
  5. 35:21Future of Dart features
  6. 38:12Conclusion and best practices
~/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.