this post was submitted on 27 Nov 2023
20 points (100.0% liked)

Rust

6049 readers
67 users here now

Welcome to the Rust community! This is a place to discuss about the Rust programming language.

Wormhole

[email protected]

Credits

  • The icon is a modified version of the official rust logo (changing the colors to a gradient and black background)

founded 1 year ago
MODERATORS
 

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.

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 3 points 1 year ago* (last edited 1 year ago)

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