4 ms·
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
by pornel 4y ago
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.
- emschwartz 4y agoFascinating! Didn't know that