News for hackers. Stuff that matters.
Re:Show HN: ES7 Decorator library adds types checking, memoi... by piran on Sunday May 31, 2015 @09:32AM (#9634103)
No these aren't the same as proxies. ES7 has class decorators that can only be used on class methods.
Re:Show HN: ES7 Decorator library adds types checking, memoi... by thomasfoster96 on Sunday May 31, 2015 @09:39AM (#9634130)
I know they're not the same, but I'd love to be able to use some of the thins I can use with decorators, but on plain objects.
Re:Show HN: ES7 Decorator library adds types checking, memoi... by eltaco on Sunday May 31, 2015 @09:41AM (#9634135)
You can also use them on class declarations themselves and object literals - https://github.com/wycats/javascript-decorators#object-liter...