The Next Exciting JavaScript Feature: Records & Tuples
summary
New primitives called Records & Tuples give value equality and deep immutability so two equal structures compare by contents, which fixes React re-render churn; change‑by‑copy adds toSorted/toReversed and with() so array nonmutating ops return new arrays; garbage‑collection needs a side table solved by Symbols as WeakMap keys (not in browsers yet); a Babel plugin transpiles syntax for experiments and Safari 16 already ships change‑by‑copy.
AI-written summary · about
chapters (13)
- 0:00Records and Tuples intro
- 0:51Immutable state problems
- 3:52Immutable libraries limits
- 6:09What are Records & Tuples
- 8:50Records vs Tuples comparison
- 10:00Updating Records & Tuples
- 11:43Change Array by Copy
- 13:35Referencing objects in R&T
- 16:29Garbage collection & WeakMaps
- 19:24Symbols as WeakMap keys
- 19:48Status and polyfills
- 22:26Testing & production use
- 22:51Q&A
related talks
29mRecords & Tuples Are Coming: The Next Exciting JavaScript Feature
38mRecords & Tuples are coming: the next exciting JavaScript feature
29mThe Immutable Way: A Guide to Cleaner, More Predictable JavaScript
53mThings You Don't Know About JavaScript in 2023
45mJavaScript Immutability - "Don't Go Changing"
31mSo, what’s new in ES2025?
31mImmutable Data and React
07h 16mJetBrains JavaScript Day 2022
