On Mon, Jul 22, 2013 at 10:26 AM, Graham Ashton <[email protected]> wrote:
> On 22 Jul 2013, at 10:14, Francis Fish <[email protected]> wrote: > > > with bus do > > tell :turn_on > > tell :add_leaves > > end > > > > With the kettle/teapot listeners doing some pattern matching ... or you > could just use Erlang ;-) > > What are people's thoughts on the fact that inside that block, self has > been changed? > > Self hasn't been changed unless that's how you built it - if this is a bus dispatching messages to registered listeners, then the listeners are expecting the message and the bus is just the way the messages are delivered. Self of the listeners may change, but not necessarily. There's some really interesting discussion about self and tap and so on in https://leanpub.com/combinators - I need to read it again. -- You received this message because you are subscribed to the Google Groups "NWRUG" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/nwrug-members. For more options, visit https://groups.google.com/groups/opt_out.
