[[Invoke]] and implicit method calls
bruant.d at gmail.com
Fri Sep 20 14:33:49 PDT 2013
Le 20/09/2013 13:02, Tom Van Cutsem a écrit :
> 2013/9/20 David Bruant <bruant.d at gmail.com <mailto:bruant.d at gmail.com>>
> 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?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the es-discuss