Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> T: ‘a is T outlives ‘a; but types are not generated at runtime.

Yes, that’s true, but you can make it a bit more specific by saying “all the references in T outlive ‘a”. Then it should make more sense, as references are generated at runtime.

This gets to the heart of what makes Rust an interesting language, as references are generated at runtime, but how long those references are valid for is checked at compile time using lifetime bounds.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: