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.