Marius Gundersen (2013-11-08T01:07:09.000Z)
On Nov 8, 2013 1:46 AM, "Mark Miller" <erights at gmail.com> wrote:
>
> On Thu, Nov 7, 2013 at 4:27 PM, Marius Gundersen <gundersen at gmail.com>
wrote:
>>
>> It seems that every (real) usecase for weakRefs, weakMaps and weakSets
is to implement a weak event listener system.
>
>
> Not true. Even silly.

Sorry, I may have worded that a bit strongly

>
>>
>> Unfortunately weak event listeners cannot be implemented with the
current weakSet/weakMap spec, since they are not iterable.
>
>
> If they were iterable, they would be broken, and fail to solve their
actual real use cases. They are not the right tool for the job -- they have
nothing to do with weak event listeners.
>

Yes, that was my point. Weak event listeners should be implemented in the
browser to solve the kind of problems brought up towards the end of this
thread. I never meant to say that weak sets or maps should be used to
implement weak event listeners. Many common problems can be solved with
weak event listeners, and so they should be standardized and implemented in
the language.

> "It seems like the only real use case for email is to make toast.
Unfortunately, email can't be used to make toast because it isn't hot
enough."
>
>
> --
> Text by me above is hereby placed in the public domain
>
>   Cheers,
>   --MarkM
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20131108/ec8bdcc2/attachment.html>
domenic at domenicdenicola.com (2013-11-17T17:51:44.364Z)
On Nov 8, 2013 1:46 AM, "Mark Miller" <erights at gmail.com> wrote:
> Not true. Even silly.

Sorry, I may have worded that a bit strongly

> If they were iterable, they would be broken, and fail to solve their actual real use cases. They are not the right tool for the job -- they have nothing to do with weak event listeners.

Yes, that was my point. Weak event listeners should be implemented in the
browser to solve the kind of problems brought up towards the end of this
thread. I never meant to say that weak sets or maps should be used to
implement weak event listeners. Many common problems can be solved with
weak event listeners, and so they should be standardized and implemented in
the language.