Re:Catching use-after-move C++ bugs with Clang's consumed an...
by blub on Thursday July 11, 2019 @02:24AM
(#20409524)
Copy semantics are not a flaw, they're a feature because they always work reliably.
If move semantics were the default, we'd either get more use-after-frees or require the awkwardness of the borrow checker to have a semblance of sanity.
If move semantics were the default, we'd either get more use-after-frees or require the awkwardness of the borrow checker to have a semblance of sanity.