4 ms·
I did not write the original solution...
by AtNightWeCode 5y ago
I did not write the original solution...
- slver 5y agoSo you reckon we only need immutability if two or more people have to work on code. Ok.
- AtNightWeCode 5y agoYou are just too stupid. I hope you are not immutable.
- the_af 5y agoPrecisely: you did not write the original solution, which is where immutability shines. It's a code comprehension tool; it gives you guarantees about code you didn't write. That's a huge boon!
- AtNightWeCode 5y agoThere are no guarantees that it is the same object you get so it is pointless.
- slver 5y agoNo one uses immutables to make sure they “get the same object”. What does that even mean?