e013: Staying alive - a podcast by Chris Krycho

from 2016-04-04T17:52:21

:: ::

Reasoning about and using lifetimes in Rust (and why we need them)



Notes


Lifetimes are our way of reasoning about how long a given piece of data is

available and safe to use in Rust. The reason we don't have the dangling

pointer problem is that we do have lifetimes instead. They're not magic,

they're just a bit of semantics and syntax that let us specify the rules for

how long any given item lives, and how long references to data must be valid.



Links






Sponsors




(Thanks to the couple people donating who opted out of the reward tier, as

well. You know who you are!)



Become a sponsor




Contact


Further episodes of New Rustacean

Further podcasts by Chris Krycho

Website of Chris Krycho