Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
AtNightWeCode
· 5y ago · 0 comments
Good code don't have this issue.
Comments
[–]
slver
5y ago
Good code doesn’t have concepts like “typically doesn’t mutate”. It’s either mutable or immutable.
[–]
AtNightWeCode
OP
5y ago
The 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 ago
Apparently you don’t know most immutable structures are optimized for modified cloning in ways mutables aren’t.
[–]
AtNightWeCode
OP
5y ago
This is Java.
[–]
marcodave
5y ago
good code shouldn't need to be debugged either ;)