4 ms·
> OO is designed and really good for modeling a complex system that involves lots of mutation I'd argue that this is where OOP struggles the most. Because muta
by weavejester 13y ago
> OO is designed and really good for modeling a complex system that involves lots of mutation
I'd argue that this is where OOP struggles the most. Because mutation in OOP is implicit and unconstrained, it's more difficult to manage than in FP languages, which typically have more sophisticated controls and constraints for handling state.
- dbaupp 13y agoIsn't that more a problem with the mainstream implementations of OOP, since one could concievably have an OOP language with fine-grained mutability?
- weavejester 13y agoYes, I suppose it would be possible. It might work better with Smalltalk-like languages that revolve around message-passing.
- gngeal 13y agoJormundir is very much wrong on that. OOP was never supposed to "involve lots of mutation". Go ask Alan Kay. ;-)