April 2017
Intermediate to advanced
316 pages
9h 33m
English
Immutable value objects are objects that contain attributes but have no conceptual identity. They should be treated as immutable.
In a previous chapter, we saw that Swift provides immutable product and sum types with auto-implemented structural equality, which addresses this pattern trivially. Heavy reliance on state in OOP makes references first-class citizens rather than the structure of the data itself.
Read now
Unlock full access