~/talk

Records & Tuples are coming: the next exciting JavaScript feature

Talkat jsday 2022 · 2022-04-21..04-22· [javascript]
slides:none on file

Proposal adds two new immutable primitives that are compared by contents using deep equality with ===, not by reference, and can serve as Map/Set keys; they only contain primitives so objects require a boxed-symbol shim backed by weak maps. Languages-level support pairs with a child spec, change-array-by-copy methods, to give non‑mutating array ops. Babel and es‑shims polyfills enable experimentation now, while weak‑map semantics and weak keys remain unpolyfillable until engine implementations reach stage 3.

AI-written summary · about

  1. 0:00Introduction
  2. 1:36Records and tuples in JS
  3. 2:24Immutability in JavaScript
  4. 8:07Records and tuples as primitives
  5. 13:14Updating records and tuples
  6. 16:48Objects in records and tuples
  7. 21:21Symbols as weak map keys
  8. 24:16Using records and tuples today
  9. 26:45Live demo and playground
  10. 27:08Q&A
~/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.