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

Normative: Renamings in decorator descriptors #199

Merged
merged 3 commits into from Jan 10, 2019
Merged

Normative: Renamings in decorator descriptors #199

merged 3 commits into from Jan 10, 2019

Conversation

littledan
Copy link
Member

Resolves #173

See individual commit messages for details.

For hooks, rename to start
For fields, rename to initialize
Keep the internal slot [[Initializer]], as class
fields uses that name
@littledan
Copy link
Member Author

littledan commented Jan 10, 2019

@ljharb
Copy link
Member

ljharb commented Jan 10, 2019

We may want to consider the interaction of “hook” with the upcoming React feature.

@tjcrowder
Copy link
Contributor

@ljharb - It's a really generic term, I don't think there's a problem there. But there's always..."callback". 😁 (Or "phase"?)

@ljharb
Copy link
Member

ljharb commented Jan 10, 2019

I think hook is the best we’ve come up with so far, just wanted to mention the overlap :-)

@littledan
Copy link
Member Author

I guess react hooks don't ever use the term "hook" in source code, so maybe we're good here. Let's go with "hook" for now, and we can reconsider it in future issues.

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

Successfully merging this pull request may close these issues.

None yet

4 participants