Video: but what is 'a lifetime? (www.youtube.com)
from SorteKanin@feddit.dk to rust@programming.dev on 27 Nov 2023 09:32
https://feddit.dk/post/2372384

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.

#rust

threaded - newest

sugar_in_your_tea@sh.itjust.works on 27 Nov 2023 15:17 collapse

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).