Re:The Pain of Real Linear Types in Rust
by adrianratnapala on Tuesday May 09, 2017 @11:09PM
(#14305647)
I guess it is only for ones with nontrivial destructors.
That makes the "trivialness" of a destructor part of the interface, which is a price. But then from my experience in C++, we pay that price anyway, because to have any sort of assurance about what you are doing, you need some clue about what the destructor does.
That makes the "trivialness" of a destructor part of the interface, which is a price. But then from my experience in C++, we pay that price anyway, because to have any sort of assurance about what you are doing, you need some clue about what the destructor does.