I'm curious (and please answer with as much nuance as you can muster): How would you feel if decorators in JS could never be standardized because classes with decorators would have an unavoidable performance penalty relative to the same code written by hand?
-
-
In practice most decorators won't actually just do anything and every thing. The vast majority it into a few pretty well-behaved patterns. We can see the use-cases now, so we don't have to speculate too much.
-
Sounds like we’re in agreement! Built-in decorators ftw. I want decorators to happen, and I think limiting the feature to built-in decorators is the way we’ll get there. We can always add more built-in ones over time.
- 5 more replies
New conversation -
-
-
Can you say what "built-in decorators" means? I don't think it's clear to everyone following along.
-
- 1 more reply
New conversation -
-
-
I second this. I also happen to think Mathias's last point is actually totally ok, as-is. Developers will learn to write really efficient decorators, or they won't, just as they would with any other programming language feature.
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
JavaScript, HTML, CSS, HTTP, performance, security, Bash, Unicode, i18n, macOS.