3 ms·
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
by blub 7y ago
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.