Skip to content

Traceur/AtScript Discussion Question: Decorators vs Annotations? (or both?) #1644

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
JeroMiya opened this issue Jan 19, 2015 · 5 comments
Open

Comments

@JeroMiya
Copy link

Crossing the streams a bit - the TypeScript proposal here (which is based on the Traceur/AtScript specification for annotations):
microsoft/TypeScript#1557 (comment)

Brought up some interesting discussion on the merits of annotations vs decorators. The discussion on the TypeScript issue seems to be leaning towards decorators, as envisioned in the TC-39 meeting notes:

https://github.com/rwaldron/tc39-notes/blob/master/es6/2014-04/apr-10.md#decorators-for-es7
Tagging @wycats whom I believe is championing this feature for ES7, correct?

I think this might be an important discussion to have on the Traceur side as well. Is it feasible or desirable to have both annotations and decorators in the same language? Should Traceur be experimenting with decorators? Why or why not? I'd love to hear the Traceur/AtScript's take.

@arv
Copy link
Collaborator

arv commented Jan 20, 2015

Is it feasible or desirable to have both annotations and decorators in the same language?

No. We should pick one.

@JeroMiya
Copy link
Author

JeroMiya commented Feb 3, 2015

What if decorators make it into the ES7 standard? As @EisenbergEffect has pointed out here (babel/babel#559 (comment)), decorators are being actively discussed for inclusion in the standard and AtScript style annotations are not (yet?).

@arv
Copy link
Collaborator

arv commented Feb 3, 2015

For Traceur we could do both until we pick one in TC39.

@zdychacek
Copy link

Decorators are already implemented in Babel. Is Traceur going to support them too?

https://github.com/wycats/javascript-decorators

@arv
Copy link
Collaborator

arv commented Apr 8, 2015

That was the plan. I don't have time to work on it... patches welcome.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants