New week, new Rust! What are you folks up to?
The Book - Chapter 4: Understanding Ownership begins with:
Ownership is Rust’s most unique feature and has deep implications for the rest of the language.
So, on my agenda for this week is to study that chapter in depth.
I like to point people towards Quinedot's Learning Rust
There's a large section on ownership, borrowing and lifetimes. Read the book first as you have planned. But if you want more advice/guidance, or later on find yourself "fighting the borrow checker", it might be able to answer some of your questions or solve some of your problems. You can always ask here on the forums as well of course!
Thanks, this looks really great for studying ownership and related fundamentals of the language.
Have added it to the agenda for this and next week.
I'm new to Rust and spent a long time this week practicing converting a while
loop with mutable variables into a successors
call with immutable variables. I had to wrestle a lot with ownership across closures, and it ended up being much longer than the original while
loop, but it was good practice.
I wasn't aware of Quinedot's Learning Rust, and it looks good. I know what I'm doing next week.
@Quercus: If you haven't already, you may also want to watch leddoo's YouTube video on lifetimes, which made lifetimes a lot clearer to me. You can think of them as regions of code or as areas of memory.
A personal project that I'm working on to teach myself Rust. So far I'm loving Rust, its amazing honestly. It's so intuitive once the learning curve is hurdled. I feel so powerful using it because I'm coming from higher level languages, so the feeling of confidently being able to mess with systems programming is awesome!