-
Notifications
You must be signed in to change notification settings - Fork 62
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 Box
from the proposal
#277
Conversation
Does symbols as weakmaps keys have likely consensus to move forward? It would be unfortunate it records/tuples shipped but that proposal failed to move forward. |
It wouldn’t be possible for that to happen; symbols as weakmap keys would need to ship first. |
Well fully immutable records and tuples could be perfectly functional without the other proposal (e.g. things like |
There seems to be disagreement on that point. From the current readme of the Symbols as WeakMap Keys proposal:
|
After the last TC39 meeting, it's clear that we won't be able to move forward with object placeholders (aka boxes). They will be left to userland implementations that rely on the Symbols as WeakMap keys proposal.
An implementation would look like this:
and it can be used like
It's possible that after seeing how records&tuples will be used in the wild (and if the community will converge on some specific "Box" patterns) we will be able to present it as a follow-on proposal, but for now boxes/placeholders are keeping the proposal stuck at stage 2 indefinitely.
Closes #270, closes #240, closes #257