News for hackers. Stuff that matters.
Re:Getting Past “Ampersand-Driven Development” in Rust by pornel on Thursday March 09, 2023 @05:32PM (#35087772)
Rust 0.x used to have this the other way around with an explicit `move` keyword.

It was tedious and eventually dropped. For example, it's more natural to move in assignment. `= move` is weirdly boilerplatey, `=` borrowing is unhelpful, and `=` moving without the move keyword is inconsistent.

Also the moment something is borrowed starts a lifetime scope, which is useful to know. It'd be harder to notice loan scopes of loans were implicit.

Re:Getting Past “Ampersand-Driven Development” in Rust by emschwartz on Friday March 10, 2023 @07:56AM (#35093763)
Fascinating! Didn't know that