[rust-dev] &self/&mut self in traits considered harmful(?)

Tommi rusty.gates at icloud.com
Mon Jun 16 05:41:18 PDT 2014


On 2014-06-15, at 21:10, Isaac Dupree <ml at isaac.cedarswampstudios.org> wrote:

>> On 6/12/14 11:15 AM, Tommi wrote:
>>> But I think it will be easy to make the error of writing the explicit
>>> .clone() in places where it's not needed. For example:
>>> [...]
> 
> Would a compiler warning for unnecessary clones be feasible? useful? Would it have false positives -- situations where a clone would compile as a move but do the wrong thing?

I would just ignore the first 12 of my posts on this thread.



More information about the Rust-dev mailing list