[Noob here] Can someone explain to me the advantage of mutable objects?
Michal @ Michal @programming.dev Posts 4Comments 482Joined 2 yr. ago
Michal @ Michal @programming.dev
Posts
4
Comments
482
Joined
2 yr. ago
Deleted
Permanently Deleted
Because recreating entire object just to make a single change is dumb.
God help you if you've already passed the object by reference and have to chase up all the references to point at the new version!