Jul 29, 2022
protocols act as type eraser in swift — forcing dynamic (aka: slow) dispatching.
delegation is factually inferior in swift.
and the unsubscribing part: also that sounds like a rather bad idea, actually. as this means you created a system that will shrink and grow during execution — which is a really bad idea if you want write error free codes. you should code the receiver to ignore the message once it looses interest.