3 ms·
There were also some interesting comments yesterday when this was posted to the Rust subreddit: https://www.reddit.com/r/rust/comments/45gcmh/why_rusts_ownersh
by dikaiosune 11y ago
There were also some interesting comments yesterday when this was posted to the Rust subreddit:
https://www.reddit.com/r/rust/comments/45gcmh/why_rusts_ownershipborrowing_is_hard/ https://www.reddit.com/r/rust/comments/45gcmh/why_rusts_owne...
- gulpahum 11y agoThere was one good point, which was also my conclusion: "Given all that, I wonder if it makes sense to prefer plain old functions most of the time. Is that right, or am I overlooking something?" The response was yes. Avoid impl methods which take a mutable self.
- steveklabnik 11y agoI wouldn't characterize it this way. There was a whole thread on just this question: https://www.reddit.com/r/rust/comments/45j6ua/why_dont_we_prefer_plain_functions_over_impl/ https://www.reddit.com/r/rust/comments/45j6ua/why_dont_we_pr...