Re: Adding an interface to provide a list of listeners

Anne van Kesteren <[email protected]>
Newsgroups gmane.comp.web.dom.general
Message-ID <CADnb78iKxwT6htPK=bFL6nOXHtfamAx8TCwFrWa6L=e94NB8PQ@mail.gmail.com>
On Sun, Jul 27, 2014 at 7:52 PM, Glenn Adams <[email protected]> wrote:
> On Sun, Jul 27, 2014 at 1:42 PM, Anne van Kesteren <[email protected]> wrote:
>> I did not talk about triggering the observers. How does adding a
>> listener clearly have side effects?
>
> (1) it mutates the list of listeners on some node

Perhaps I should have said observable side effect from the perspective
of those adding the listener.


> (2) it creates a future promise to invoke those listeners, which invocation
> may (and usually does) produce side effects

That's immaterial.


-- 
http://annevankesteren.nl/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.