The disadvantages of immutability

Nothing in the world comes only with advantages.

There's a great proverb: everything comes at its own price.

The only thing you can hear against immutability is that you need to create a new object every time you want to modify it. That's true in some scenarios, especially where you're working with large sets of objects. However, when you are working with small datasets or objects, it doesn't have any effect.

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

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