Comments (4)
I've googled around but everything says "It's not ready" vs "Here's how you can help".
Fair. If you're coming from outside the community it may not be easy to initially grasp how it's all done.
But not having decorators in the javascript language seems really absurd to me coming form C# & Java.
It's certainly valid to feel they are a useful pattern, but the language has survived this long without them, so it's clearly not a massive rush. Bringing patterns from other languages really can be a great strength, but doing so without extreme care is something that would worry me far more than adopting things too slowly.
Especially since we have something that works.
The implementation in this repo is wildly different from the current proposed specification, so it probably depends on your definition of "works".
Do you know who I can talk to and volunteer to move this part of the spec along?
The specification is managed by TC39, the standards committee. Proposals are moved forward by members of the committee presenting them and gathering feedback. https://github.com/tc39/proposals tracks the current status of the proposals, with decorators being tracked in https://github.com/tc39/proposal-decorators I'm not sure there's much for an external volunteer to accomplish unfortunately.
Is it just politics or is there something holding this back?
As far as I'm aware it's mostly that it's a complex feature, and the committee members working on the proposal are mostly focusing their time on other proposals that will have a greater impact on the community.
from babel-plugin-transform-decorators-legacy.
Thank you tremendously for that thoughtful and well written comment!
I respectfully disagree about the level of impact. To me, annotations are one of the very best ways that other languages reduce redundant boilerplate. MobX with decorators is a dream to use. Without decorators, it's still very powerful but much less easy to read and work with. I personally think that is true in many areas of javascript that could benefit from decorators.
I will follow the links you suggest and shake trees there looking for ways that I can contribute to making this happen. Thank you again for taking the time to write back in such excellent detail!
from babel-plugin-transform-decorators-legacy.
Ug. So I've realized why all the mobx components are able to compile without concern about decorators. It looks like they've all moved to typescript where decorator support is still main line.
I don't particularly want to add typescript to my dependencies list, but if babel doesn't easily support decorators and typescript does... I guess I'm moving over to typescript.
I still really appreciate this comment. I'll look around to see if there's anything I can do to help but this is a deciding feature for me personally.
from babel-plugin-transform-decorators-legacy.
if babel doesn't easily support decorators and typescript does
Typescript's support is basically the same as what is implemented in this repository, so it shouldn't really be a blocker. Using this plugin with Babel should continue to work fine. We don't plan on breaking this plugin at the moment, it's just that it isn't a standard part of the language yet. At some point once it is, Typescript will have to transition to that too, but it probably has the stabilize a bit first.
from babel-plugin-transform-decorators-legacy.
Related Issues (20)
- Error: Cannot read property of undefined. Static properties HOT 4
- @observable static has a Error
- Extract decorated functions as top level variables HOT 7
- Class property decorator hack. HOT 4
- [bug]Parameter Decorator does not work HOT 2
- About the parameter decorator support HOT 1
- Hook into initializer HOT 3
- Class property decorators gets applied before the class decorator itself HOT 4
- Issues with Electron HOT 19
- undefined is not a constructor (evaluating 'new u') HOT 2
- plugin not working HOT 4
- A issue in React-Native HOT 3
- Incorrect local name w/ native classes & babel-minify
- Maximum call stack size exceeded
- Clarify what babel's `legacy: true` is for exactly HOT 1
- Module build failed : Error:Cannot use the decorators and decorators-legacy plugin together
- Module parse failed: Unexpected character '@' (15:0)
- Audit vulnerabilities detected in the babelplugintransformdecoratorslegacy project on Tag: v1.3.5
- No lock file found in the babelplugintransformdecoratorslegacy project on Tag: v1.3.5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from babel-plugin-transform-decorators-legacy.