Jan 21, 2018

Immutability is a low-cost way to ensure your code is decoupled.

It allows you to control how objects in your system are allowed to be changed.

This can be very helpful in a multithreaded program. Many of the bugs and obscure edge cases that cause code to not be thread-safe arise because of mutation.
Post a Comment

Featured Post

Setup Chinese Input Method in Ubuntu 17.10 Artful

sudo apt install ibus-sunpinyin After either of those commands do not forget to restart the IBus daemon ibus restart You might need t...