News for hackers. Stuff that matters.
Re:Rust Programming Language Book by alexnewman on Saturday May 23, 2015 @04:20PM (#9594242)
From a smart friend

Rust needs a better tutorial of ownership. It's novel, so it warrants the most explanation.

Re:Rust Programming Language Book by mbrubeck on Saturday May 23, 2015 @05:27PM (#9594446)
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-s...

http://arthurtw.github.io/2014/11/30/rust-borrow-lifetimes.h...

Re:Rust Programming Language Book by badpenny on Sunday May 24, 2015 @06:17AM (#9595842)
I 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).

Re:Rust Programming Language Book by weaksauce on Saturday May 23, 2015 @04:35PM (#9594287)
The tutorial in here seems pretty good:

http://doc.rust-lang.org/book/ownership.html and the following three pages discuss it in some detail.

Re:Rust Programming Language Book by steveklabnik on Saturday May 23, 2015 @06:12PM (#9594571)
It's good at the basics, but we need more intermediate / advanced stuff. This is true of the book in general.
Re:Rust Programming Language Book by Q6T46nT668w6i3m on Saturday May 23, 2015 @04:38PM (#9594297)
I agree. However, there is a lot of information about RAII in C++ that's reasonably translatable.