hmm, very on the fence about using polymorphism vs making it explicit that Rc::clone(&foo) copies a pointer vs foo.clone(), which, uh, might do anything, idk?
-
-
Replying to @mountain_ghosts
Clippy actually warns by default if you use `foo.clone()` instead of `Rc::clone`. IMO using `clone` instead of `retain` or something explicit was a mistake
2 replies 0 retweets 2 likes -
-
Replying to @mountain_ghosts @sgrif
(I've been trying to write Rc::clone when that's what I mean, as I think TRPL advises this?)
1 reply 0 retweets 0 likes
Replying to @mountain_ghosts
Yeah, it's generally considered the correct way to write it
1:03 PM - 25 Nov 2019
0 replies
0 retweets
0 likes
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.