I think it’s actually quite a nice way to think about it. Thinking in terms of memory is much easier than thinking in terms of sections of code.
I think it’s actually quite a nice way to think about it. Thinking in terms of memory is much easier than thinking in terms of sections of code.
That’s kind of how I always thought about it. Did they change something in the Rust book? I learned about lifetimes like 5+ years ago.
Then again, I have experience building a garbage collector, so perhaps thinking about memory instead of code blocks just came naturally to be.
Regardless, thanks for the video, it was quite clear and I’ll be recommending it to others (also didn’t know about the “outlives” syntax, so that’s cool).