Re: Adding an interface to provide a list of listeners

Glenn Adams <[email protected]>
Newsgroups gmane.comp.web.dom.general
Message-ID <CACQ=j+f7HOBkXvQv_31-SZi++80=HaUmEu_qgntZE-GEfWpmfw@mail.gmail.com>
On Sun, Jul 27, 2014 at 1:42 PM, Anne van Kesteren <[email protected]> wrote:

> On Sun, Jul 27, 2014 at 4:47 PM, Glenn Adams <[email protected]> wrote:
> > Both the action of adding a listener (observer) and invoking a listener
> can
> > and does have side effects. So I don't see why you say it should not,
> since
> > it clearly does.
>
> 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
(2) it creates a future promise to invoke those listeners, which invocation
may (and usually does) produce side effects


>
>
> --
> 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.