~/talk

Records & Tuples Are Coming: The Next Exciting JavaScript Feature

Talkat JetBrains JavaScript Day 2022 · on Thursday, 2022-11-10· [javascript, web-platform]
slides:none on file

Proposal adds #records and #tuples as new immutable primitives that use hash-prefixed object/array syntax, compare by value (deep equality), and work as Map/Set keys; they only contain other primitives so immutability isn’t broken by nested objects. A related change-array-by-copy introduces non-mutating methods like toSorted, toReversed, toSpliced, with (stage 3, shipped in Safari 16). Symbols-as-weakmap-keys extends WeakMap support for unique symbols. Babel can transpile records/tuples imperfectly; full semantics remain experimental.

AI-written summary · about

  1. 0:00Records and tuples intro
  2. 0:27JavaScript immutability problem
  3. 3:40Limitations of immutability libs
  4. 8:18Records and tuples solve issues
  5. 9:00What are records and tuples
  6. 13:13Comparison and equality
  7. 13:57Updating without mutation
  8. 16:27Change Array by copy
  9. 17:51Only primitives allowed
  10. 18:53Referencing objects in records
  11. 21:59Symbols as weak map keys
  12. 24:49Status and polyfills
  13. 27:15Q&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.