4 ms·
Precisely: 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 d
by the_af 6y ago
Precisely: 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 6y agoThere are no guarantees that it is the same object you get so it is pointless.
- slver 6y agoNo one uses immutables to make sure they “get the same object”. What does that even mean?