4 ms·
>A method call is really just a synchronous message. There is an important distinction. Messages are interpreted, at runtime. Which means you can do certain ki
by gambler 8y ago
>A method call is really just a synchronous message.
There is an important distinction. Messages are interpreted, at runtime. Which means you can do certain kinds of metaprogramming without getting outside of the normal tools of the language.
This is not a black-and-white kind of thing, though. A method call can be more or less like a message depending on the language tooling provided.
- int_19h 8y agoThe tooling has also converged to some extent. Java is very much Simula-style, and methods calls aren't messages... except when they are: https://www.baeldung.com/java-dynamic-proxies https://www.baeldung.com/java-dynamic-proxies C# also has something similar with TransparentProxy, not to mention "dynamic".