-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Remove Deno.customInspect symbol at 2.0 #10929
Comments
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs. Thank you for your contributions. |
@kt3k I want to revive the idea of using just
|
I think non unique symbols are still less polluting than string keys because symbol keys are always non enumerable even when it is set to the object directly. If we set "denoCustomInspect" directly to the object, that appears in enumeration, and that can be annoying. It seems a common pattern recently to use symbols for some special protocols eg. |
Most of the time it will be used on a class though. Even if it was set directly on an object and was enumerable, I'm not convinced that's ever a problem. It would only be as bad as implementing
These are actually unique symbols whose references are built into the language. They are more like |
This symbol is gone as of #25213 and Deno |
We're going to deprecate
Deno.customInspect
symbol in favor ofSymbol.for("Deno.customInspect")
in #10035This issue is for tracking the future removal of
Deno.customInspect
.The text was updated successfully, but these errors were encountered: