Skip to content

Comment on JavaScript Records and Tuples Proposal goes to stage 2

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.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.