| bio | website | |
|---|---|---|
| location | ||
| age | ||
| visits | member for | 11 months |
| seen | Jan 9 at 15:04 | |
| stats | profile views | 8 |
|
Dec 27 |
comment |
If immutable objects are good, why do people keep creating mutable objects? OK, the original question was about why programmers use mutable objects despite their concurrency problems. I did not want to repeat everything that has been said above, only point out that in scenarios where a constant/final or whatever is required (like in java runnables) and we need to return a result from those runnables, we have to use a final reference to a mutable object. Not because we just don't get the idea how great immutability is. |
|
Dec 27 |
awarded | Editor |
|
Dec 23 |
comment |
If immutable objects are good, why do people keep creating mutable objects? did you actually read my post? |
|
Jun 6 |
answered | If immutable objects are good, why do people keep creating mutable objects? |