News for hackers. Stuff that matters.
Re:Safety: A comparaison between Rust, C++ and Go by estebank on Saturday July 30, 2022 @08:00AM (#32286124)
There's also another item in that list, and that is performance. As soon as you slightly relax that one, Rust does become massively easier. A well placed .clone() or Arc makes the rest of the code performant enough and easier to understand, which makes the equation of choosing Rust over other alternatives in spaces that aren't necessarily systems programming less problematic.
Re:Safety: A comparaison between Rust, C++ and Go by ncmncm on Saturday July 30, 2022 @07:14PM (#32291330)
Arc is equivalent to std::shared_ptr, and so ought to be code smell in Rust.

The .clone() would have been [=] in C++, which would have safely quieted the warning.