Re:Writing Pythonic Rust
by steveklabnik on Monday May 24, 2021 @05:31PM
(#27269960)
"Just use clone" is absolutely fine. I even put it in the book!
Yes, I guess to me they're distinct, but I can totally see how it may seem similar. I'll try to make sure to make that explicit when I talk about this, thanks!
On the other hand "just use Arc" is definitely smelly advice. I think going down that route, a new Rust programmer is likely to try to do something that really won't ever compile, and wind up really frustrated. Maybe we can distinguish this often-really-bad advice from the other mostly-ok-at-first advice?