tc39 / proposal-structs

JavaScript Structs: Fixed Layout Objects
http://tc39.es/proposal-structs/
624 stars 11 forks source link

Array / record support #52

Open Autumnlight02 opened 1 month ago

Autumnlight02 commented 1 month ago

Will things like arrays of structs be possible or a key value store where we have any key but an struct value? or would these things still need to be passed on via postmessage?

acutmore commented 1 month ago

Hi @Autumnlight02, the proposal currently includes another new construct "shared arrays". These are fixed length arrays that can contain shared values, and are themselves shareable.

https://github.com/tc39/proposal-structs#shared-arrays