On 21 June 2014 22:03, Igor Bukanov <i...@mir2.org> wrote:

> 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.
>

I don't know, I don't have real experience writing Rust. Have only been
looking at examples, mostly from the docs.
_______________________________________________
Rust-dev mailing list
Rust-dev@mozilla.org
https://mail.mozilla.org/listinfo/rust-dev

Reply via email to