Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

In C++, there is Move semantic. If we use "Move semantic" in C++ code, could it match the memory safety of the Rust?


Rust has move semantics too (it's automatic and there are no moved-from leftover objects), but it adds borrow checking on top of that, which C++ doesn't have.


Thank you, I will study more.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: