[rust-dev] On Copy = POD

Igor Bukanov igor at mir2.org
Sat Jun 21 13:32:25 PDT 2014

&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 <comexk at gmail.com> wrote:
> On Sat, Jun 21, 2014 at 1:52 PM, Igor Bukanov <igor at 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>...

More information about the Rust-dev mailing list