Are you going to push for records and tuples?
Eich was pushing for them in 2011 and they still haven't arrived.
I haven’t read the full post, but what’s the benefit of adding language support for records and tuples at this point? My understanding is that engines already optimize the objects/arrays version of those concepts pretty well, and TypeScript enforces the semantics on the dev side.
> My understanding is that engines already optimize the objects/arrays version of those concepts pretty well
They don't, using libraries that guarantee runtime immutability has a heavy performance cost in JS currently.
By “object approach” I just meant “making a bunch of objects with the same shape”. I’ve read that V8 can optimize these into flat structs.
Is immutability part of the proposed standard? And if so, what’s the benefit over using Object.freeze?