Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
prabhu-yu
on Sept 20, 2022
|
parent
|
context
|
favorite
| on:
It's time to halt starting any new projects in C/C...
In C++, there is Move semantic. If we use "Move semantic" in C++ code, could it match the memory safety of the Rust?
pornel
on Sept 20, 2022
[–]
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.
prabhu-yu
on Sept 20, 2022
|
parent
[–]
Thank you, I will study more.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: