3 ms·
I expect it is memory management and safety. In C++, exceptions can cause problems with dangling pointers if used in constructors, I wouldn't be surprised if t
by spott 12y ago
I expect it is memory management and safety.
In C++, exceptions can cause problems with dangling pointers if used in constructors, I wouldn't be surprised if the same were true in Rust.
- FreeFull 12y agoRust doesn't have the concept of a constructor build into the language, although often you'll see a type have a "new" method, to create an instance of it. I think exceptions interact badly with destructors too, though, and Rust does have those.