3 ms·
> Ownership-based memory management is statically elided reference counting. One difference I'd want to highlight here, which sometimes trips people up: Taking
by oconnor663 7y ago
> Ownership-based memory management is statically elided reference counting.
One difference I'd want to highlight here, which sometimes trips people up: Taking a reference to a Rust object has no effect on where that object's destructor runs. It can make the program fail to compile, if the reference lasts too long. But if the program keeps compiling, then the object's destructor is always running at the same place it was before.