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

Rust

5999 readers
46 users here now

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

Wormhole

!performance@programming.dev

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.

top 1 comments
sorted by: hot top controversial new old
[–] sugar_in_your_tea@sh.itjust.works 3 points 11 months ago* (last edited 11 months 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).