-
Notifications
You must be signed in to change notification settings - Fork 12.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove DeepClone #12698
Comments
I think this would have use cases if it was clever enough to handle cycles in |
I'll work on it. @thestinger If you have a complex structure, shouldn't you just do deep clone on clone()? My gut feeling is that it's difficult to make a useful shallow clone on things with cycles. |
@pongad: I have no doubt that it's useful to provide deep clones for I don't see a reason to force users to write |
A shallow clone is just as easy to make for an object with cycles... deep clones are the difficult operation. |
If anything, a good argument for removing it would be that it cannot currently work for cyclic |
It has no users and very few if any use cases. Having it is confusing.
The text was updated successfully, but these errors were encountered: