On 20 June 2014 21:07, Paulo Sérgio Almeida <pssalme...@gmail.com> wrote: > I have seen many other examples, where the code could mislead the reader into > thinking there are several, e.g., Mutexes: > > let mutex = Arc::new(Mutex::new(1)); > let mutex2 = mutex.clone();
Does this experience exist outside multithreaded code? I am asking because if the need to use extra temporary to create clones is limited mostly to cases involving implementations of Send, then this is rather different case than the issue of avoiding explicit clone() in general. _______________________________________________ Rust-dev mailing list Rust-dev@mozilla.org https://mail.mozilla.org/listinfo/rust-dev