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.

Exploring ES2016 Decorators

34 pointsby rscntalmost 10 years ago

4 comments

luckystarralmost 10 years ago
Also: A decorator in Python does not necessarily return the same function it received.
v413almost 10 years ago
It is not precisely clear decorators will make it into ES2016 yet (maybe ES2017?). That is why it is better to say ES Next or something like that.
评论 #9877433 未加载
vault_almost 10 years ago
It seems like only methods can be decorated. Is there any hope for decorators on top-level functions in the future?
评论 #9878559 未加载
ameliusalmost 10 years ago
I sure hope all these extensions will not bring down the raw performance of various javascript engines.
评论 #9877425 未加载