3 ms·
>The core design of OOP is to wrap mutable state behind methods which control that mutation. That is the mechanism for immutability that is traditionally provi
by jayd16 6y ago
>The core design of OOP is to wrap mutable state behind methods which control that mutation.
That is the mechanism for immutability that is traditionally provided. It is easy to opt out of that protection.
Java and C# are getting records. They're a convenience but are in no way opposed or counter to OOP.