3 ms·
This gets missed a lot. Rust isn't memory safe, it is resource safe.
by galangalalgol 4y ago
This gets missed a lot. Rust isn't memory safe, it is resource safe.
- hoseja 4y agoIsn't it the other way around?
- vlovich123 4y agoHow so?
- galangalalgol 4y agoMy point is that it is both. The borrow-checker protects every resource, not just memory.
- snovv_crash 4y agoIt's funny that people are assuming I was talking about Rust when I was actually referring to modern C++. RAII is a powerful concept.
- galangalalgol 4y agoIt is, I've written c++ as my primary language for 30 years. I skipped c++14 and I'm still using 17, but staying up to date other than that. But RAII doesn't come anywhere close to the borrow checker in the number of mistakes it prevents.