JavaScript Records and Tuples Proposal goes to stage 2
1–9 of 9 posts
Re: JavaScript Records and Tuples Proposal goes to stage 2
#2JavaScript is adding so much new syntax I feel bad for people starting to learn the language now.
Re: JavaScript Records and Tuples Proposal goes to stage 2
#3I'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.
Re: JavaScript Records and Tuples Proposal goes to stage 2
#4Re: JavaScript Records and Tuples Proposal goes to stage 2
#5Re: JavaScript Records and Tuples Proposal goes to stage 2
#6Immutability and structural equality will make these extremely useful. I'm concerned how the masses of recent grads and bootcamp grads will interact with these. One of my favorite JS interview questions is "what is the difference between var, let, and const?". I don't reject candidates based on it, I just like hearing the different answers. I only heard the correct answer once out of all the entry-level developers th…
Reference equality is a huge source of confusion for them. Structural equality is what they expect.
Re: JavaScript Records and Tuples Proposal goes to stage 2
#7 #{ a: 1 } === #{ a: 1 } //=> true
This is massively useful.Re: JavaScript Records and Tuples Proposal goes to stage 2
#8I'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.
Re: JavaScript Records and Tuples Proposal goes to stage 2
#9Immutability and structural equality will make these extremely useful. I'm concerned how the masses of recent grads and bootcamp grads will interact with these. One of my favorite JS interview questions is "what is the difference between var, let, and const?". I don't reject candidates based on it, I just like hearing the different answers. I only heard the correct answer once out of all the entry-level developers th…
I'm more concerned with the way that recent grads and bootcamp grads will interact with everything else. Reference equality is a huge source of confusion for them. Structural equality is what they expect.