2 ms·
There 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 rig
by gulpahum 11y ago
There 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...