@nikic suggested to me at the all-hands that sometimes it would be nice to allow function arguments to "opportunistically" be passed in-place: even if the argument is copy, which usually guarantees the caller will see the value at a different address than the callee, it could sometimes be useful to avoid the copy and just pass the value in-place.
@nikic do you have a concrete example of that?
@Amanieu do you think your MIR move semantics proposal could help with this?
@nikic suggested to me at the all-hands that sometimes it would be nice to allow function arguments to "opportunistically" be passed in-place: even if the argument is
copy, which usually guarantees the caller will see the value at a different address than the callee, it could sometimes be useful to avoid the copy and just pass the value in-place.@nikic do you have a concrete example of that?
@Amanieu do you think your MIR move semantics proposal could help with this?