News for hackers. Stuff that matters.
Re:Rust 1.49.0 by shadow31 on Thursday December 31, 2020 @05:27PM (#25597906)
> Why not implicitly clone in some cases (since classes like String gets used so frequently)

Because they get used so frequently. Why would we want to add expensive clones to frequently used operations?

This would be like asking why LINQ methods in C# aren't deferred by default. Yes, there's a few situations where that would be nice but it would make the functions largely useless because of how poor performance would be.

There are no comments on this comment yet.