3 ms·
whether mutating data is better than creating a new copy for everything is a really long debate about immutability and functional programming, with good points
by tusharsadhwani 5y ago
whether mutating data is better than creating a new copy for everything is a really long debate about immutability and functional programming, with good points on either sides, but that's really beyond the point here.
In my opinion, you should use whichever method makes your code easy to read and understand for your usecase.