3 ms·
Good code doesn’t have concepts like “typically doesn’t mutate”. It’s either mutable or immutable.
by slver 5y ago
Good code doesn’t have concepts like “typically doesn’t mutate”. It’s either mutable or immutable.
- AtNightWeCode 5y agoThe standard way to do it is to mutate clones as always in Java. Typically by use of libraries that provide this. You really need very bad code to have to think about if objects are mutable.
- slver 5y agoApparently you don’t know most immutable structures are optimized for modified cloning in ways mutables aren’t.
- AtNightWeCode 5y agoThis is Java.
- slver 5y agoAnd?