[Proposal]: move parameter modifier #9909
Unanswered
metaone01
asked this question in
Language Ideas
Replies: 4 comments 6 replies
|
I think an attribute would be better because it has a much greater chance to be accepted and a much smaller impact on the ecosystem. You might want to make this suggestion for the runtime instead (asking for a new attribute in the |
0 replies
Why? What if I want to move to an async method? That would be illegal. |
1 reply
|
|
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
This is something similar to
std::move()in C++. The object's ownership is explicitly transferred into the function. After that, the object should not be used.moveis implicitly includingref.I'm not sure if a
MoveAttributeis better.All reactions