keithamus / proposal-object-freeze-seal-syntax

A JavaScript TC39 proposal for Object.freeze & Object.seal syntax
https://www.keithcirkel.co.uk/object-freeze-seal-syntax
59 stars 8 forks source link

Why not Arrays too? #1

Open littledan opened 6 years ago

littledan commented 6 years ago

This could be especially useful for the destructuring bind case, to have sealed arrays. But also, frozen array literals could be useful for when you have an array of constants that shouldn't change for semantic reasons.

keithamus commented 6 years ago

Arrays are also part of this proposal; it isn't immediately clear though; I'll fix this.