Proposal: Abstract References
zenparsing at gmail.com
Tue Oct 21 13:30:27 PDT 2014
> That said, this is really elegant and if nothing else it seems like good
> underpinnings for some slightly-higher-level private state abstraction.
Right - the idea is that sugar could be introduced over this for declaring
private fields. Also, this proposal doesn't depend upon WeakMaps for
private fields, per se. We could imagine some new, opaque thing that uses
the same "referenceGet/Set/Delete" mechanism.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the es-discuss