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

Use non-registered symbols as weak map keys. #192

Open
theengineear opened this issue Oct 18, 2024 · 0 comments
Open

Use non-registered symbols as weak map keys. #192

theengineear opened this issue Oct 18, 2024 · 0 comments

Comments

@theengineear
Copy link
Collaborator

The proposal to allow non-registered symbols (e.g., Symbol('foo')) as keys for weak maps was accepted for 2023. Seems sensible to pivot over to using something like Symbol('__result__') for the opaque references we pass back from our internal template engine.

Currently, x-element creates a new null object (Object.create(null)), which feels dated now that symbols can be used 👌

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

No branches or pull requests

1 participant