4 ms·
Any code that operates upon your object with "private" state still has to account for the fact that its methods are not referentially transparent. E.g. I have t
by jeremyjh 13y ago
Any code that operates upon your object with "private" state still has to account for the fact that its methods are not referentially transparent. E.g. I have to open a connection to the database before I can send commands through it, and so now I have to check if its already open everywhere I use it. So that is definitely shared state, but I guarantee you that a lot of people think a private variable means it is not shared.
- deleted 13y ago[deleted]