Hallo, Frank Barknecht hat gesagt: // Frank Barknecht wrote:
A third solution would be to use a fixed send/receiver name and use [route] to route incoming messages according to their first element.
You can use the [list prepend]-[list trim] idiom to easily construct such messages.
I attached an illustration of how I use this idea normally. Although I used [list] here, the basic approach works without it as well, I just used [list] because it's so convenient.
IMO this is almost fully equivalent to renaming sends and receives and should catch most cases where one might want to use these. The main advantage, or the advantage important to me is, that it reduces the number of globally visible receivers to basically one or two. I tend to avoid pollution of the receiver namespace whereever possible, but that may be a style or taste issue.
Frank Barknecht _ ______footils.org_ __goto10.org__