Lessons from Implementing Functions in My Interpreter (in Rust)
x.comu/TechnologySubject259 — 3 days ago
If you don't know, in Rust, when a move occurs, the old variable still holds the same value.
Only the compiler makes sure you can't access the old variable.
This is because cleaning the old variable is unnecessary overhead. As long as we don't need it, it doesn't matter what value it holds.