Le 20/09/2013 13:02, Tom Van Cutsem a écrit :
2013/9/20 David Bruant <[email protected] <mailto:[email protected]>>

    I'm still inclined to think a generic solution to private state
    and proxies should be found. Given this solution, the invoke trap
    may end up being plain redundant. That would be unfortunate.
    I realize private state isn't figured out for ES6, so I think this
    issue should be left pending, the invoke trap included.


My point of view is that we have already found the "generic solution" to private state: WeakMaps. WeakMaps are able to store private state, and they don't interact with proxies at all. I realize WeakMaps have syntactic and implementation-level usability issues, and I'm hopeful the relationships strawman can overcome these. But relationships semantically still build upon WeakMaps, and they were tested to work across membranes in all cases.
... I had forgotten about relationships. My bad.
What's the status on relationships?

David
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to