Mutable Shared State: List of Values

Posted on

When we have mutable shared state, written code is harder to understand. We have to know where the state has become shared and where it is modified. Usually those location are on different places. It become worse, when inner state of a class is shared.