Finally understood lifetimes!

82 points vinayakdsci 6 comments

I know this is one of the most covered topics in Rust, but the abstraction in most tutorials hid too much for a systems programmer coming from C/C++ to be able to grasp the concept.

So I dug around the standard library, and this blog post teaches lifetimes from ground up from my findings.

Please read and comment!