TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

ECMAScript 6: new OOP features besides classes

87 点作者 StylifyYourBlog超过 10 年前

11 条评论

igl超过 10 年前
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 未加载
bradchoate超过 10 年前
I guess the guy that proposed an &#x27;====&#x27; operator lost to the guy that proposed a &#x27;Object.is()&#x27; method.
dpweb超过 10 年前
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 未加载
bsimpson超过 10 年前
I&#x27;m constantly impressed by the quality of articles on 2ality. They&#x27;re always both informative and succinct.
Kiro超过 10 年前
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 未加载
gargarplex超过 10 年前
What&#x27;s the timeline on everyone using ES6 in production and JavaScript developers being expected to know ES6? 2 years?
评论 #8812779 未加载
评论 #8813532 未加载
kelvin0超过 10 年前
More makeup on a Gorilla doesn&#x27;t turn it into a Lady.
评论 #8813211 未加载
评论 #8813581 未加载
评论 #8813071 未加载
recursive超过 10 年前
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 未加载
Hypx超过 10 年前
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>
julie1超过 10 年前
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.
LunaSea超过 10 年前
I&#x27;m not sure why you would add OOP features to a prototype based language.