April 2017
Intermediate to advanced
316 pages
9h 33m
English
Our mutable example's design can produce unpredictable side-effects. If multiple clients hold a reference to the ProductTracker instance, there are two ways for the products to change from underneath any of these clients:
Either way, there are going to be side-effects and unintended consequences because of the mutation.
In our immutable example, it is impossible to cause those unintended consequences because our FunctionalProductTracker is a value type and all the properties ...
Read now
Unlock full access