3 ms·
> You essentially can’t write rust at all until you understand rust references, lifetimes (implicit and explicit) and the borrowchecker. You can if you're will
by zozbot234 3y ago
> You essentially can’t write rust at all until you understand rust references, lifetimes (implicit and explicit) and the borrowchecker.
You can if you're willing to use stuff like .clone() and the interior mutability types. In Rust, you can tell when code has been written to be a bit sloppy because it has that kind of boilerplate. And the compiler checks are a huge help when it comes to refactoring the code and making it cleaner and better-performing.
- josephg 3y agoEh. If you don’t know how references work in rust, you’ll struggle to use most of the standard library or any 3rd party crates. And if you can’t pass mutable references to functions or iterators there’s a lot of programs that will be hard to write at all. Performance will be pretty rubbish too. You might be able to write some simple programs, but I wouldn’t say you know rust yet, or could really be productive with the language.