3 ms·
sender.send(receiver, message, params) is really sending a message to sender with content {send, receiver, message, params} If you want the receiver to know w
by toast0 5y ago
sender.send(receiver, message, params)
is really sending a message to sender with content {send, receiver, message, params}
If you want the receiver to know who the sender is, you need to pass that along in the message. Personally, I find that's easier to manage if it's explicit rather than implicit. If I want to send a message and have replies go to me, I'd say the sender is self or this or what have you; but if replies should go elsewhere, I can easily do that. With an implicit sender, you have to route the sending through the sender to get the reply to the right place and it adds considerable structual complexity.