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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Improving EcmaScript5 OO with sugar

16 点作者 Raynos超过 13 年前

3 条评论

raganwald超过 13 年前
“There are multiple similar prototypical OO utilies... All solve the same problem:”<p><a href="http://xkcd.com/927/" rel="nofollow">http://xkcd.com/927/</a>
评论 #3265922 未加载
mrspeaker超过 13 年前
I hope ES.next gets a bunch of the goodness that is outlined in Harmony - this would mostly eradicate the need for stop-gap libraries like pd, or transpilers like CoffeeScript. <a href="http://wiki.ecmascript.org/doku.php?id=harmony:object_literals" rel="nofollow">http://wiki.ecmascript.org/doku.php?id=harmony:object_litera...</a><p>And being able to do<p><pre><code> var obj = protoObj &#60;| { ... properties ... } </code></pre> would be fantastic. If I that, and short function syntax then I'd be happy.
评论 #3264980 未加载
Autre超过 13 年前
Maybe I overlooked, but is there support for "super.method()" or something along those lines?
评论 #3265192 未加载