Weak event listener

Jason Orendorff jason.orendorff at gmail.com
Wed Mar 27 08:52:46 PDT 2013

On Tue, Mar 26, 2013 at 3:05 PM, Brendan Eich <brendan at mozilla.com> wrote:
> Hi Jason, agree on your request for non-contrived use-cases. I wrote about
> the general observer pub/sub problem here:
> http://www.mail-archive.com/es-discuss@mozilla.org/msg21480.html
> Hope it helps.

Mmmmm. It does.

>> What would work here is determinism:
>>      https://gist.github.com/jorendorff/5245857
> It seems to me you want some kind of deterministic finalization or scoped
> destructor. That's not in the cards for JS.

Oh -- no, my point was just that the API shown there can already be
implemented just using 'finally'. I wasn't asking for any stronger
guarantee than what 'finally' already provides.


More information about the es-discuss mailing list