[Noob here] Can someone explain to me the advantage of mutable objects?
eluvatar @ eluvatar @programming.dev Posts 0Comments 141Joined 2 yr. ago
eluvatar @ eluvatar @programming.dev
Posts
0
Comments
141
Joined
2 yr. ago
I was trying to think of a good real world example, but couldn't think of anything. But if you were to think of it as Google docs. You could just copy every doc to change it, but if you've shared it with people then you will have to share it again. It also takes up a whole lot more space to do that, sure you could delete those old ones but that takes some work too.