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.

Improving EcmaScript5 OO with sugar

16 pointsby Raynosover 13 years ago

3 comments

raganwaldover 13 years ago
“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 未加载
mrspeakerover 13 years ago
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 未加载
Autreover 13 years ago
Maybe I overlooked, but is there support for "super.method()" or something along those lines?
评论 #3265192 未加载