Records & Tuples: How a slew of new JS features are going to radically change how we write our code
summary
Records and tuples are compared by value not reference, are primitive-only (strings, booleans, other records/tuples; no objects, arrays, or functions), and serialize to a useful string prefixed with #; they’re immutable and have companion proposals like change by copy (stage 3), deep path properties (stage 2) and json.parseIntoRecords (parseImmutable). The pipeline operator settles on the hack-style placeholder (controversial for optimization and usability). Temporal replaces Date (stage 3, awaiting ECMA-402 adoption before Nov 5) with Plain vs Zoned types, durations and robust arithmetic.
AI-written summary · about
