3 ms·
Keep in mind today Rust is intended to be a better C++. (For loose values of 'intended'.) Destructors are a common resource management idiom there (although I
by mcguire 10y ago
Keep in mind today Rust is intended to be a better C++. (For loose values of 'intended'.)
Destructors are a common resource management idiom there (although I guess most C++ programmers couldn't describe the behavior correctly), and there are no other really common idioms for that.
Better the devil you kind of know?