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

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

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

Comments

Projects
None yet
3 participants
@JeroMiya

JeroMiya commented Jan 19, 2015

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

This comment has been minimized.

Show comment
Hide comment
@arv

arv Jan 20, 2015

Collaborator

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

No. We should pick one.

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

This comment has been minimized.

Show comment
Hide comment
@JeroMiya

JeroMiya 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?).

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

This comment has been minimized.

Show comment
Hide comment
@arv

arv Feb 3, 2015

Collaborator

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

Collaborator

arv commented Feb 3, 2015

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

@zdychacek

This comment has been minimized.

Show comment
Hide comment
@zdychacek

zdychacek Apr 8, 2015

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

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

zdychacek commented Apr 8, 2015

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

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

@arv

This comment has been minimized.

Show comment
Hide comment
@arv

arv Apr 8, 2015

Collaborator

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

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