The advantages of immutability

We've mentioned several times that immutability brings safety along with it. But that's not all; the following is a brief list of advantages that immutability brings with it, we will discuss them one by one:

  • Thread safety
  • Low coupling
  • Referential transparency
  • Failure atomicity
  • Compiler optimization
  • Pure functions

Let us now discuss each of the advantages to understand them better.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.222.184.200