Open leobalter opened 3 years ago
For clarification, If this feature becomes reality, we could already use it through other forms to reach different Realms, including iframes. The dependency is only from a shared identity proposal to this one, but this one does not depend on anything else. I hope it can find progress towards the stage process soon!
As seen in the recent discussions for Realms, this proposal has now become a very useful feature that could be used to share identities through multiple realms. Using Weakmaps with symbol keys would be a first step to config membranes.
This proposed feature goes straight to our usage without increased complexity. Transferring a symbol identity through realms seems like a separate concern. Although, using Records and Tuples for this separate concern still feels overkill as we would need to specify what it means to transfer their structure to set identity references. There is no depreciation for the use cases of R&T, but we'd need to enable Symbols as WeakMap keys as the base for the next proposal-step.