Y
Hacker News
new
|
ask
|
show
|
jobs
by
lambda_garden
910 days ago
In practice, I think it's easier to use linting and type-systems to prevent other code from mutating you stuff than defensive copying.
1 comments
VPenkov
910 days 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.
link