-
Notifications
You must be signed in to change notification settings - Fork 5
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
Deprecate Symbol.species
#13
Comments
I actually just audited our codebase and found one instance where we're testing for the existence of Also, I believe we don't want to prevent people from building their own species type subclassing. |
@ilias-t Note that Stage 1 is, IMO, a much weaker signal than deprecation. We're still unsure if the machinery can be removed at all due to web compat. It is jumping the gun to mark it as a legacy or deprecated feature currently. |
@mhofman fwiw in the cases i've seen, "ES6 compatible" can mean a different thing; no engine that has symbols lacks |
Even if it’s too early to deprecate, I’d suggest that the main goal here should be to signal a warning to developers that it may be a risk to depend on this moving forward. |
@ilias-t if I am not mistaken, the use case you are describing might not be in danger. What is being proposed for removal is how it interacts with subclassing. |
Given this proposal aims to remove the ability to use
Symbol.species
to subclass, and since the proposal is now in stage 1, would it make sense to deprecateSymbol.species
at least in documentation like MDN to signal this intended behavior and reduce future usage of it?The text was updated successfully, but these errors were encountered: