10 ms·
Good code don't have this issue.
by AtNightWeCode 5y ago
Good code don't have this issue.
- slver 5y agoGood 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?
- marcodave 5y agogood code shouldn't need to be debugged either ;)