3 ms·
I admit I'm being myopic here but that's exactly why I ask. In what scenario is a genuine message passing/arbitrary methods useful? I tend to look through ever
by ionforce 13y ago
I admit I'm being myopic here but that's exactly why I ask. In what scenario is a genuine message passing/arbitrary methods useful?
I tend to look through everything in an OOP/type safe way, so the idea of having an unlimited, highly dynamic vocabulary for method calling is very... Foreign to me.
When does this pattern outshine static interfaces?
- acjohnson55 13y agoOne spot when it's very useful is in making objects that are proxies for external resources (file data, executable utlities, etc.). Particularly when those resources can be inspected, it can be much better from a DRY perspective to let the interface of your proxy object automatically adapt even as the underlying resource changes.