4 ms·
TL;DR: "Calling a function with parameters is just another form of synchronous message passing, either by-reference or by-value [...] But yes, we already have
by Ace17 8y ago
TL;DR:
"Calling a function with parameters is just another form of synchronous message passing, either by-reference or by-value [...]
But yes, we already have message-oriented programming languages—if you squint the right way"
- rzzzt 8y agoReification is a nice feature of messages -- you can capture the "idea" of a single function call as a message, so it can be logged, forwarded to another component through the network, etc.
- WorldMaker 8y agoWhich is part of why the Redux patterns became so common in React apps, because that message reification for logging and debugging is hugely useful. That also strikes to the heart of a lot of complaints about Redux patterns and their boiler-plate in that a lot of the raw details of that reification are left to the developer (in the various action-creator patterns), as well as the message bus dispatch (the various reducer patterns). There are usually questions about why more of it isn't "just" single function calls.