Top "Immutability" questions

Immutability is the inability to modify data after it has been created.

Converting immutable to mutable collections

What is the best way to convert collection.immutable.Set to collection.mutable.Set?

scala collections immutability mutable
C# and immutability and readonly fields... a lie?

I have found that People claim that using all readonly fields in a class does not necessarily make that class's …

c# .net immutability readonly
Allen Holub wrote "You should never use get/set functions", is he correct?

Allen Holub wrote the following, You can't have a program without some coupling. Nonetheless, you can minimize coupling considerably by …

language-agnostic oop immutability setter getter
Remove data from nested objects without mutating

Is there any elegant way of removing an object from an array which is part of an array? I have …

javascript immutability redux mutation
Is "new String()" immutable as well?

I've been studying Java String for a while. The following questions are based on the below posts Java String is …

java string immutability
About the changing id of an immutable string

Something about the id of objects of type str (in python 2.7) puzzles me. The str type is immutable, so I …

python string immutability python-internals
How to set/get string in Java safely?

I have read Java String class is immutable and thread-safe but I am still confused about whether the reference assignment …

java string thread-safety immutability reentrantlock
What is immutability and why should I worry about it?

I've read a couple of articles on immutability but still don't follow the concept very well. I made a thread …

oop immutability
What does cassandra do during compaction?

I know that cassandra merges sstables, row-keys, remove tombstone and all. But i am really interested to know how it …

cassandra immutability tombstone stream-compaction
Scala "update" immutable object best practices

With a mutable object I can write something like var user = DAO.getUser(id) user.name = "John" user.email ="john@…

scala functional-programming immutability scala-2.10