Skip to content
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

Make it an official proposal for ES (?) #9

Closed
jkrems opened this issue Jul 12, 2015 · 8 comments
Closed

Make it an official proposal for ES (?) #9

jkrems opened this issue Jul 12, 2015 · 8 comments
Labels

Comments

@jkrems
Copy link

jkrems commented Jul 12, 2015

This is half question, half suggestion: Are there plans for adding Reflect.metadata to the list of ECMA262 proposals? It seems like there is progress in the TypeScript integration but no trace of adding it to JS proper. I think it would be valuable having it exposed early in that list because it could help direct the conversation about the decorator proposal (e.g. an official way of implementing annotations using decorators instead of just "random code patching/obfuscation").

@rbuckton
Copy link
Owner

Right now we're still working to finalize Decorators for ES2016. Until the Decorators proposal progresses to at least Stage 2, I don't want to complicate the discussion with this proposal. That said, this is very much on the minds of the Decorators champions and the working group responsible for moving Decorators forward.

@jkrems
Copy link
Author

jkrems commented Aug 26, 2015

Thanks for the clarification!

@MartinJohns
Copy link

Until the Decorators proposal progresses to at least Stage 2

Decorators are now in Stage 2. https://github.com/tc39/proposals

@MuYunyun
Copy link

It seems the browser has implemented the Reflect Object.

image

I wonder the ECMA proposals reflect-metadata follow isn't the same as the Reflect in the browser(chrome), for example, it has the api Reflect.deleteProperty() in the browser, but I have not found the api in the reflect-metadata.

@jkrems
Copy link
Author

jkrems commented Oct 28, 2018

@MuYunyun The reflect object itself isn't introduced with this proposal. Reflect.construct for example was already introduced in ES6/ES2015: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Reflect/construct. The metadata proposal just adds additional methods to it.

@MuYunyun
Copy link

MuYunyun commented Oct 29, 2018

Thanks, I understand. I think the refect-metadate is a friendly api with decorate, is it?

@rektide
Copy link

rektide commented Jan 24, 2019

I opened tc39/proposal-decorators#225 last week because of concern that Decorators don't have any kind of reflection built in. I re discovered this spec by accident, and located this relevant ticket.

I don't feel like I've gotten anyone at all interested though. :( :( :(

@rbuckton
Copy link
Owner

rbuckton commented Dec 9, 2023

Now that the Decorator Metadata is at Stage 3, it is unlikely that this proposal will be brought to committee.

@rbuckton rbuckton closed this as completed Dec 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants