top | item 38733614

(no title)

lambda_garden | 2 years 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.

discuss

order

VPenkov|2 years 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.