2 ms·
There's three main flavors I see: Synchronous method calling as limited message passing; synchronous method calling as general message passing, and asynchronou
by dragonwriter 8y ago
There's three main flavors I see:
Synchronous method calling as limited message passing; synchronous method calling as general message passing, and asynchronous message passing.
Java and C++ and most static class-oriented OO languages are in th first group.
Ruby and Smalltalk (and JS, which isn't, barring more recent developments, class oriented OO, bit is still OO) and some other dynamic OO languages are in the second group.
Elixir/Erlang are in the third group.
Message passing is inherently an imperative idiom (whether synchronous or not), even though it may show up in languages that are largely declarative rather than imperative outside of message handling.
- dnautics 8y agoDo C++ and java actually pass messages? Java I have no clue, but I thought calling a member function in c++ is looking up a function pointer in a table or a vtable if inherited virtual.
- dragonwriter 8y ago> Do C++ and java actually pass messages? Not really, “a limited echo of message passing” would have probably been more accurate than limited message passing: C++ and Java Ivor a form of OO inspired by Smalltalk-style message passing but are implemented in a way which provides something much more limited.