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.

ECMAScript 6: new OOP features besides classes

87 pointsby StylifyYourBlogover 10 years ago

11 comments

iglover 10 years ago
First we have to wait for complete implementations.<p>Then wait for v8 performance: <a href="http://jsperf.com/performance-frozen-object" rel="nofollow">http:&#x2F;&#x2F;jsperf.com&#x2F;performance-frozen-object</a> ES5 is doing good...<p>And at last: Wait for &lt; IE-11 to die.<p>It remains to be seen if io.js will boosts ES Next for the server. Since bound to v8 i don&#x27;t expect much.<p>Other implementations like the ahead of time compiler echojs become interesting. I am also curious how Typescript will look at v2.0.<p>I am ready, however I still don&#x27;t use arrow functions... Which were first heard of in 2010? 2011?<p>It still feels like so far away.
评论 #8813545 未加载
评论 #8814493 未加载
评论 #8813525 未加载
bradchoateover 10 years ago
I guess the guy that proposed an &#x27;====&#x27; operator lost to the guy that proposed a &#x27;Object.is()&#x27; method.
dpwebover 10 years ago
I&#x27;m sorry most of the sugar I don&#x27;t find particularly helpful and can be confusing when you have more than one way to do something. generators, async keyword these should be prioritized not class based inheritance. Even block scoping I mean maybe I&#x27;m nuts but function scoping if you take the time to understand it, it works.
评论 #8812976 未加载
评论 #8812983 未加载
bsimpsonover 10 years ago
I&#x27;m constantly impressed by the quality of articles on 2ality. They&#x27;re always both informative and succinct.
Kiroover 10 years ago
Why so much let? Are you supposed to only use let now? I thought it had a very specific use (like wanting a local variable in a loop).
评论 #8814180 未加载
评论 #8814060 未加载
评论 #8813927 未加载
gargarplexover 10 years ago
What&#x27;s the timeline on everyone using ES6 in production and JavaScript developers being expected to know ES6? 2 years?
评论 #8812779 未加载
评论 #8813532 未加载
kelvin0over 10 years ago
More makeup on a Gorilla doesn&#x27;t turn it into a Lady.
评论 #8813211 未加载
评论 #8813581 未加载
评论 #8813071 未加载
recursiveover 10 years ago
Being able to (eventually) use all these language features in a language that&#x27;s running inside a browser is blowing my mind right now. It&#x27;s got iterators! It&#x27;s got properties!
评论 #8812816 未加载
Hypxover 10 years ago
State of ECMAScript-6 support in current browsers:<p><a href="http://kangax.github.io/compat-table/es6/" rel="nofollow">http:&#x2F;&#x2F;kangax.github.io&#x2F;compat-table&#x2F;es6&#x2F;</a>
julie1over 10 years ago
It looks like a 2nd system effect to me or a cancer of the features.<p>In JS there are a lot of other stuff to fix before adding syntax. (non commutativity of ==).<p>But adding stuff like macro, confusing multiline chars it looks like a hell to maintain to me.<p>Hours of painfully finding what could have triggered the bug!<p>The code? The macro? Is this a &#x27; or a ` ? ....<p>Hell, this is hell coming on us my fellow grunt programmers.
LunaSeaover 10 years ago
I&#x27;m not sure why you would add OOP features to a prototype based language.