On Mon, Jul 22, 2013 at 9:27 AM, Ash Moran <[email protected]>wrote:

>
> On 21 Jul 2013, at 10:38, Francis Fish <[email protected]> wrote:
>
> > with bus do
> >   tell kettle, :turn_on
> >   tell teapot, :add_leaves
> >   tell kitchen, :wake_ash_for_tea_frenzy
> > end
> >
> > …
> >
> > I can see some semantics in the mist around kettle receiving a
> has_boiled message and pouring water into the teapot.
>
> Ah, actually the point is that the object sending the message doesn't know
> what will handle it. I see why "tell" sounds like a good choice otherwise.
> The outgoing message might be :boil_water and the resultant message might
> be :water_has_boiled. It's more an indiscriminate "Somebody boil me some
> water!!!".
>
>
I think it then becomes

register bus do
  kettle
  teapot
end

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 ;-)

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


Reply via email to