News for hackers. Stuff that matters.
Re:Making a Go program 70% faster with a one character change by adrian17 on Tuesday November 15, 2022 @04:53AM (#33607223)
> Rust gets this right, with the hindsight of C++’s example: “a = b” is a move operation by default and clone() is always explicit

Note that a move can still do a copy; in fact, Rust is kinda notorious for generating more on-stack memory copy operations than C++. It’s slowly improving, but it can still be surprisingly bad in some cases.

There are no comments on this comment yet.