Comment on JavaScript Records and Tuples Proposal goes to stage 2Comments−syspec6yI'd rather just be able to mark an object as frozen, which we can already do.JavaScript is adding so much new syntax I feel bad for people starting to learn the language now.−jakelazaroff6yIn terms of syntax this seems pretty lightweight, though. It's the same as instantiating a normal object or array, except with a hash in front.−oweiler6yIt's lightweight, but also looks obscure and will probably be hard to google.
Comments
I'd rather just be able to mark an object as frozen, which we can already do.
JavaScript is adding so much new syntax I feel bad for people starting to learn the language now.
In terms of syntax this seems pretty lightweight, though. It's the same as instantiating a normal object or array, except with a hash in front.
It's lightweight, but also looks obscure and will probably be hard to google.