Live data from Hacker News

Using ES7 Decorators as Mixins

raganwald.com

11–14 of 14 posts

Re: Using ES7 Decorators as Mixins

#11

Kinda makes me feel incompetent. Just started using ES6 in nodejs and here are people already gunning for ES7. Amazing.

The subtext of this article is that underneath all this glitzy new syntax, class mixins are absolutely nothing new. The semantics are the same. The important thing is to focus on the underlying principles and let the syntax evolve as it wishes.

Re: Using ES7 Decorators as Mixins

#12

Kinda makes me feel incompetent. Just started using ES6 in nodejs and here are people already gunning for ES7. Amazing.

Don't stress, while ES7 is exciting (and I'm using parts of it, async/await alone are worth using) a fair bit of it is still up in the air. Unless there are particular features you'd like (for myself that is async/await and decorators), es6 alone is well worth it.

Re: Using ES7 Decorators as Mixins

#13
post #10

Kinda makes me feel incompetent. Just started using ES6 in nodejs and here are people already gunning for ES7. Amazing.

dude, es6 is way too mainstream for cutting edge web programming. If you're not using es7 already you might as well still be using table layouts

I've started writing my own ES9 specification to get a jump on the really cutting-edge stuff, it's influenced by functional languages but only ironically.

Re: Using ES7 Decorators as Mixins

#14
post #4
post #3

I want to try decorators but I really dislike javascript classes.

You don't have to use them with just classes: https://github.com/wycats/javascript-decorators

All the examples seem to be using classes. I think I am missing something here.

Can you point me to an example without es6 classes?

Post reply on HN