Improving message recipient sophistication #1022
mwpowellhtx
started this conversation in
Ideas
Replies: 1 comment
-
I currently use the opposite of what that idea would like to do. I use derived classes, sometimes without any changes, in order to have a different message than the base message, when the receiving function is called too often as it isn't precise enough. So this idea would break this current behaviour and another alternative would need to be used |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The use case, something like message
A
, messageB
derived fromA
. I'd like toIRecipient<A>
, and respond to eitherA
orB
instances, as the case may be. However, it seems I need to specificaly implementIRecipient<B>
. How "easy" (big air quotes) would it be, perhaps, to improveIMessenger
allowing for anA
orB
orNth_degree
class hierarchy. Obviously that is the naive academic ask; by extension anything in theB
hierarchy, for example. In broader patterns discussion, homogenously sending messages, based anywhere in a given class hierarchy, allowing for a potentially heterogeneous recipient, i.e may find receiving either anA
or aB
orN
for that matter.Beta Was this translation helpful? Give feedback.
All reactions