Closed ondreian closed 6 years ago
currently GameObj and descendants are all mutable.
GameObj
I would prefer to be using immutable data structures for any objects that are shared (by threads), because shared mutable objects are the devil
some background info
I believe the hamster gem is considered the best immutable datastructure gem, if we want to add a dependency.
implemented via the GameObj mixin here which makes the Object reasonably immutable for now.
currently
GameObj
and descendants are all mutable.I would prefer to be using immutable data structures for any objects that are shared (by threads), because shared mutable objects are the devil
some background info
I believe the hamster gem is considered the best immutable datastructure gem, if we want to add a dependency.