▲ | etyp 17 hours ago | |||||||||||||||||||||||||
Safe programs extend beyond those that Rust's borrow checker accepts though. There is more than one way to make a program safe, not all of them would be valid Rust. | ||||||||||||||||||||||||||
▲ | goku12 14 hours ago | parent [-] | |||||||||||||||||||||||||
There are more than one way to achieve safety in Rust. Two more, infact - runtime safety and fully manual (unsafe with some additional work). Runtime safety is a very fast way to overcome the resistance offered by the borrow checker. While it does slowdown the code a little bit, that should be pretty fine for prototyping. A more careful use of runtime checks will still give you a program more performant than in most other languages. | ||||||||||||||||||||||||||
|