5 ms·
One of the best post-beginner / intermediate learning experiences wrt. Rust is to try to model the Borrow Checker behavior with Rust. Just write small (>10 LoC)
by natded 5y ago
One of the best post-beginner / intermediate learning experiences wrt. Rust is to try to model the Borrow Checker behavior with Rust. Just write small (>10 LoC) programs within safe subset of Rust:
1. Rejected unsafe programs (and the why)
2. Rejected safe programs (and the why)
.. and try to convince yourself that you understand the logic behind the two.
https://whileydave.com/2021/12/06/modelling-borrow-checking-in-rust/ https://whileydave.com/2021/12/06/modelling-borrow-checking-...
https://github.com/rust-lang/unsafe-code-guidelines/blob/master/wip/stacked-borrows.md https://github.com/rust-lang/unsafe-code-guidelines/blob/mas...