&Rc<T> introduces useless indirection that not only clatters the code with &x but also harms performance as the compiler cannot eliminate that when calling across crates.
On 21 June 2014 21:24, comex <com...@gmail.com> wrote: > On Sat, Jun 21, 2014 at 1:52 PM, Igor Bukanov <i...@mir2.org> wrote: >> Another possibility is to allow for move-in-move-out params that moves >> the the value back to the caller when the function returns forcing the >> callee to use the clone call if it wants to store the argument for a >> later use. > > It should be possible to do that already with a type like &Rc<T>... _______________________________________________ Rust-dev mailing list Rust-dev@mozilla.org https://mail.mozilla.org/listinfo/rust-dev