[[Invoke]] and implicit method calls

Mark S. Miller erights at google.com
Fri Sep 20 14:40:19 PDT 2013

Still expected for ES7. Of course, you can use WeakMaps for private state
manually in ES6 in the meantime.

On Fri, Sep 20, 2013 at 2:33 PM, David Bruant <bruant.d at gmail.com> wrote:

>  Le 20/09/2013 13:02, Tom Van Cutsem a écrit :
>  2013/9/20 David Bruant <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?
> David
> _______________________________________________
> es-discuss mailing list
> es-discuss at mozilla.org
> https://mail.mozilla.org/listinfo/es-discuss

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20130920/a6ef7889/attachment-0001.html>

More information about the es-discuss mailing list