3 ms·
It makes code easy to understand as you can easily identify what is input and what is output and can easily figure out the flow of data i.e what is being comput
by ankurdhama 4y ago
It makes code easy to understand as you can easily identify what is input and what is output and can easily figure out the flow of data i.e what is being computed based on what. Without immutable objects a function taking object can mutate those objects and now they are acting as input and output, which leads to complexity.