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

Not a resource, but some advice for learning:

Even though the two concepts are intertwined, you'll master borrowing well before you master lifetimes. And that's okay.

Early on you'll probably not need to author many structs that require lifetime annotations. If you think you need to, you're either purposefully building something complicated and/or memory-limited, OR you're using the concept without understanding and not needing to do so.

If you can stay away from writing your own explicit lifetimes on structs and interfaces while you're learning, it becomes a much easier process.

Once you've mastered this stuff, Rust is seldom more difficult than any other language.

It's like that quote from the Matrix. You get used to it. Pretty soon you won't even see the borrow checker.



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

Search: