3 ms·
> As soon as you add private data attributes whose values can break referential integrity of the object’s function calls function calls, then it’s game over fo
by dnautics 8y ago
> As soon as you add private data attributes whose values can break referential integrity of the object’s function calls function calls, then it’s game over for FP
Technically you can do something like this in fp land if you're using the actor model to encapsulate hidden state and erroneous code in a passed lambda does something strange to the hidden state. It's pretty hard to do since most fps with actor model put all of your interfaces to the state right in front of you.
- chriswarbo 8y agoActors are very closely related to OOP, especially the Smalltalk/Self message-passing perspective. The main difference is that message sends to actors are asynchronous whilst objects usually aren't.