On 22 Jul 2013, at 10:26, Graham Ashton <[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? > > When first seeing code like this I thought "hey, that's really clean - nice". > > Then I ran into all sorts of trouble with in a couple of projects that I'd > used that invoked the pattern, and went off it rather quickly. I don't do this either any more, it's never turned out to be worth the slight extra terseness. I'm not against it in principle, I just haven't found it helpful in practice. Ash -- http://www.patchspace.co.uk/ http://www.linkedin.com/in/ashmoran -- 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.
