TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

JavaScript Records and Tuples Proposal goes to stage 2

32 pointsby usethisalmost 5 years ago

4 comments

mcraihaalmost 5 years ago
"Records and Tuples aim to be usable and understood with external typesystem supersets such as TypeScript or Flow." Must be fun to design stuff that shouldn't break your language nor other languages.
rsstackalmost 5 years ago
Immutability 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 that I interviewed.
评论 #23929998 未加载
simplifyalmost 5 years ago
I was thinking &quot;what&#x27;s the point?&quot; until I reached the section on equality:<p><pre><code> #{ a: 1 } === #{ a: 1 } &#x2F;&#x2F;=&gt; true </code></pre> This is massively useful.
syspecalmost 5 years ago
I&#x27;d rather just be able to mark an object as frozen, which we can already do.<p>JavaScript is adding so much new syntax I feel bad for people starting to learn the language now.
评论 #23928615 未加载