Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
lambda_garden
· 2y ago · 0 comments
In practice, I think it's easier to use linting and type-systems to prevent other code from mutating you stuff than defensive copying.
Comments
[–]
VPenkov
2y ago
You could make the same argument backwards though - many people may find it easier to do deep copies rather than throwing extra software they might not necessarily be familiar with.