Hacker News new | ask | show | jobs
by epage 3029 days ago
To me, the power of it isn't just in dynamic memory but also in that Rust has clear move vs ref vs bit copy vs logical copy (clone) and use-after-free protection.

As one example of the benefit of this. This makes me feel a lot more comfortable writing state machines in Rust's type system.

See https://hoverbear.org/2016/10/12/rust-state-machine-pattern/