3 ms·
i think Rust is actually encouraging programmers to make extra copies of objects, because that's the most simple path to get things done. Did I miss anything?
by MichaelMoser123 3y ago
i think Rust is actually encouraging programmers to make extra copies of objects, because that's the most simple path to get things done.
Did I miss anything?
- dralley 3y agoThat it's often similar in C/C++, except instead of the borrow checker being in the way it's fear of memory management or concurrency bugs.
- MichaelMoser123 3y agostill, in c++ you would pass an object by reference to a function call (if that object is not expected to be of very small in size). However in Rust you do have a strong incentive to do otherwise.