Exercise Your Options
Few things affect concurrency and correctness as much as the approach we take to deal with state; you can choose from shared mutability, isolated mutability, and pure immutability. Exercise your options and choose wisely.
Shared mutability is the fail-boat we want to avoid. The minute we refuse to get on it, a number of concurrency issues disappear. It takes some effort and discipline to avoid the all-too-familiar shared mutable style of programming; however, those efforts will soon pay back.
Get on board the boats of isolated mutability and pure immutability (where possible) to set on a smooth sail to realize the goals. These approaches remove the concerns at the root. Rather than spending valuable time and effort preventing ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access