Weak event listener
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:
> Hope it helps.
Mmmmm. It does.
>> What would work here is determinism:
> 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