On 7/25/2013 1:31 PM, Erik Arvidsson wrote:
https://gist.github.com/arv/0bbb184710016e00d56c

The main goal of this proposal is to let us postpone the discussion
about private state until ES7, making sure that we solve the main use
cases.

Differences from Symbols:

* enumerable
* visible to Object.getOwnPropertyNames
* no way to differentiate a unique string from any other string
* no easy debug representation (since you can't differentiate from a string)

I'm curious why the desire to not have unique symbols? I was under the impression that private Symbols or relationships or whatever could be punted without affecting unique Symbols, which serve a different use case (name spacing and encapsulation, not security). This proposal covers name spacing while ignoring encapsulation.
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to