The Immutability Concept and why it is so important

Saloni Kaur
3 min readOct 19, 2020

Every now and then you will hear developers talk about embracing immutability but what’s the real deal with it.

This article is inspired by Venkat Subramaniam’s Voxxed Days Talk. It was very well executed and here are my notes from it.

What is Immutability?

Opposite of mutability and that means modifying the state (content) of an object, whether primitive or object. And yes, we do do this very often. So what’s wrong? Let’s consider the following:

--

--