Post

I haven't thought about this too hard, but I think explicit captures might have some nice interactions with theoretical partial borrows. In this case it'd could be a "partial capture by clone": move(cx.request_name.clone()) || { foo(cx.request_name); // request_name is a "partial clone" here }

0 reposts0 likes

Thinking a bit harder, that's effectively the same thing as your "last use transformation", just a less special-case mental model of it.