You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Improve deepcopy documentation to clarify reference behavior (JuliaLang#51569)
The original text here:
> For example, deep-copying an array produces a new array whose elements
are deep copies of the original elements
reads to me that its implementation would do something like
`deepcopy(array) = [deepcopy(element) for element in array]`. That's the
wrong mental model — we preserve relationships. This is tricky to talk
about, but I think this gets at the crux of it.
0 commit comments