I'm enjoying the new write-up on ownership/references/borrowing! It reads more like an fascinating reading on PL concept than a language-specific manual. Great work!
Re:Rust vs C Pitfalls
by steveklabnik on Wednesday December 28, 2016 @12:14PM
(#13271906)
Thank you!
Count me excited. I've always liked the book, but I've also found it fairly lacking in ways I'm not sure I completely understand, I can likely lend part of that to my relative inexperience with Rust and systems programming in general.
One I can note is that I really like the new sections. I've never quite liked that the current book is just a bunch of chapters all in a row. Not that that's necessarily bad in and of itself, but I do think the new way is better.
Re:Rust vs C Pitfalls
by steveklabnik on Tuesday December 27, 2016 @09:17PM
(#13267944)
Thanks! If you do check it out, don't hesitate to file issues.
How far along is the new documentation? Would it be better to read https://doc.rust-lang.org/book/ or the github.io page? Maybe both?
Re:Rust vs C Pitfalls
by steveklabnik on Wednesday December 28, 2016 @12:18AM
(#13268595)
Both would be ideal, if you have the time. The new book is far enough along that you can learn the most basic stuff from it, and the intermediate bits are coming along. The more advanced stuff is only
an outline. So if you start with new, and then switch to old, you'll get the best of both.
Re:Rust vs C Pitfalls
by lobster_johnson on Tuesday December 27, 2016 @11:40PM
(#13268446)
I believe I reported this once, but it's still there: You're hijacking alt-cmd-left/right, which I use for switching tabs in Safari. Your arrow-key event handler needs to have a guard:
!(event.ctrlKey || event.shiftKey ||
event.altKey || event.metaKey)
(Thanks for writing great documentation, though.)
Re:Rust vs C Pitfalls
by steveklabnik on Wednesday December 28, 2016 @12:17AM
(#13268588)
Yeah I'm not sure mdbook has patched it yet. I'll make sure a ticket is filed tomorrow, I thought we did, but am not sure. Even if we did, well, that's open source.
(I think it's even better, but I'm biased)