124 ms·
I agree. I personally found these two blog posts to be useful introductions to ownership and borrowing: http://blog.skylight.io/rust-means-never-having-to-clos
by mbrubeck 11y ago
I agree. I personally found these two blog posts to be useful introductions to ownership and borrowing:
http://blog.skylight.io/rust-means-never-having-to-close-a-socket/ http://blog.skylight.io/rust-means-never-having-to-close-a-s...
http://arthurtw.github.io/2014/11/30/rust-borrow-lifetimes.html http://arthurtw.github.io/2014/11/30/rust-borrow-lifetimes.h...
- badpenny 11y agoI may just be not very bright but I've read both of those plus the coverage in the aforementioned book and I still regularly find myself banging my head against the borrow checker when writing code myself. I think at least part of the problem is the use of trivial examples. I don't seem to have any problems with any of the other concepts used by the language except where they overlap with the borrow checker (e.g. destructuring a Box using).