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
There's nothing wrong with a few clone()s scattered about in places to satisfy the borrow checker, but there are literally hundreds of them in HyperQuark at the moment, many of which are probably operating on potentially quite large data structures. Where possible, clones should be avoided. cloneing an Rc is fine and inevitable of course and perhaps more references (or smart pointers of some sort) should be used to help this.
The text was updated successfully, but these errors were encountered:
There's nothing wrong with a few
clone()
s scattered about in places to satisfy the borrow checker, but there are literally hundreds of them in HyperQuark at the moment, many of which are probably operating on potentially quite large data structures. Where possible,clone
s should be avoided.clone
ing anRc
is fine and inevitable of course and perhaps more references (or smart pointers of some sort) should be used to help this.The text was updated successfully, but these errors were encountered: