3 ms·
Well, somewhat. Passing messages is inherently more dynamic, as you can see: you can change the string to anything at runtime, even something that doesn't exist
by saagarjha 6y ago
Well, somewhat. Passing messages is inherently more dynamic, as you can see: you can change the string to anything at runtime, even something that doesn't exist, you can intercept the message and send it somewhere else or handle it however you wish. Static dispatch doesn't let you do this, but you generally get the advantage of faster calls and better compile-time diagnostics. In simple cases, the programming style can be similar, but for more advanced features they really differ in the kinds of things they support.