3 ms·
unique_ptr counts as a affine type, the linearity is enforced at compile time. (even if access safety is not)
by vitno 5y ago
unique_ptr counts as a affine type, the linearity is enforced at compile time. (even if access safety is not)
- steveklabnik 5y agoYeah, thinking about it I would agree with you. I was thinking that it being copyable so easily would be disqualifying, but I wouldn’t say the same about Clone in Rust and it’s not really about explicitness, anyway. Thanks.