|
|
|
|
|
by wtetzner
2696 days ago
|
|
The point is that while it's easy to do in C++, it's extremely error prone. Rust encourages you to write code that works with things like slices and references instead of copying, because the compiler won't let you use them in a way that is error prone. |
|
Last time I read a blog post about this, they picked a situation that was perfectly safe and ordinary in C++, with straightforward function-local safety reasoning.