QueenSvetlana
Beta member
- Messages
- 3
- Location
- Russia
When writing code for games, does it make sense to make game objects immutable?
Given that objects in the games can change in many different ways, this would mean creating and returning a new object every time an attribute of that object changes.
Given that objects in the games can change in many different ways, this would mean creating and returning a new object every time an attribute of that object changes.