proposal-record-tuple
proposal-record-tuple copied to clipboard
ECMAScript proposal for the Record and Tuple value types. | Stage 2: it will change!
[Array.prototype.groupBy](https://github.com/tc39/proposal-array-grouping) getting stage 3 made me think, I wonder what `Tuple.prototype.groupBy` would do 🤔 1. return an object of arrays 2. return a record of tuples 3. return an object...
This is an alternative PR to #357. They both change the spec so that the object returned by `ToObject(recordPrimitive)` is [ordinary](https://tc39.es/ecma262/multipage/overview.html#sec-ordinary-object). The difference in this PR is the object retains...
I'd like to use this with classes, where you can't add new properties but can modify existing ones. This would solve the problem of storing duplicate `{a:1}` in a set....
The topic of brand-checking record exotic objects was discussed in plenary today. **Context**: Exposing a function that provides an infallible test for the `[[RecordData]]` internal slot has proved difficult for...
Spit out from #349 > why does [ToPrimitive](https://tc39.es/proposal-record-tuple/#sec-toprimitive) have a fast path for Records, but not also for Tuples? (i understand that the lack of a Record prototype is why...
According to @littledan on [JS Party Episode 305](https://changelog.com/news/whats-next-in-javascript-a-tc39-update-zD73), value semantics for records and tuples are being reconsidered by the committee. Could you expand a little more on the concerns here?
Can I use?
Been waiting for this for a long time, am pretty bottlenecked right now on how well I can write new cryptography in JavaScript until this lands in at least v8....
I have not find any specification about the truthy / falsy about the tulpe or records. I had tested the playground and it currently report `!!#[]` and `!!#{}` as `true`....
This proposal’s spec defines a `Tuple.from` method akin to `Array.from`. #250 (see #369) also added support for [proposal-iterator-helpers](https://github.com/tc39/proposal-iterator-helpers)’s `Iterator.from` and [proposal-async-iterator-helpers](https://github.com/tc39/proposal-async-iterator-helpers)’s `AsyncIterator.from`. proposal-iterator-helpers is at Stage 3 and proposal-async-iterator-helpers is...
JavaScript has objects, arrays, dates, and sets. In regard to immutables, with the advent of records and tuples, objects now map to records, arrays to tuples, dates to temporals (soon...