I wrote down some thoughts about how a "transient" qualifier may have been a much better way to achieve move semantics in C++ compared to the awfulness of rvalue references. http://ericlengyel.blogspot.com/2017/11/some-thoughts-about-rvalue-references.html …
-
-
I'd think that cases where the enclosing object wants to access a subobject that was already moved are less common and justify an explicit copy of the subobject as opposed to the current system where everything is explicitly moved.
-
That’s a crazy default. You’d write what looks like fine code, and find that variables are corrupted when used more than once because the compiler defaults to moving them.
- 1 more reply
New conversation -
-
-
Linear types provide a framework for reasoning about this stuff and it’s fairly restrictive.
-
Linear types can change the world!
End of conversation
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.