2 ms·
"Beginner code" is a bit misstated, yes. An abundance of .clone()s does suggest that the code path might be unoptimized, but unoptimized code isn't solely writ
by zozbot234 4y ago
"Beginner code" is a bit misstated, yes. An abundance of .clone()s does suggest that the code path might be unoptimized, but unoptimized code isn't solely written by beginners. If you want to use Rust for quick prototyping, you're going to use .clone() a lot. It's a bit regrettable that the book doesn't clarify this more.