Re: Adding an interface to provide a list of listeners

On Sun, Jul 27, 2014 at 1:42 PM, Anne van Kesteren <annevk@annevk.nl> wrote:

> On Sun, Jul 27, 2014 at 4:47 PM, Glenn Adams <glenn@skynav.com> 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/
>

Received on Sunday, 27 July 2014 17:53:31 UTC