|
|
|
|
|
by jerf
6261 days ago
|
|
"The problem with OOP is that it encourages the proliferation of mutable state." It should be pointed out that this is a characteristic of the languages and not actually OOP. The original insight, something like "Hey, let's bundle together data structures and their methods into one unit, and communicate with them via messages!" (which got turned into "method calls") actually has nothing to say about mutability. You can and people have build object systems based on immutable objects. The implications of doing that are deep and profound and color the rest of the system and are beyond the scope of this posting, but it can be done. |
|