-
Notifications
You must be signed in to change notification settings - Fork 111
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Example does not compile #55
Comments
Yes, it really was impossible to compile that snippet! Rust needs to know whether Fixed with the latest update! |
Interesting. Looks like that's an opportunity for a better compiler error message.
Didn't to me at all suggest what the cause of the problem was. Thanks for the help! |
... and the very awesome rust intro. I really appreciate the references to other programming languages. Besides references to c/c++, it's something I haven't yet seen in other rust books and tutorials. |
I think we all come from somewhere, and usually it's a garbage-collected, managed language. That definitely makes life simpler. With Rust certain new distinctions have to be made, but really it's mostly about references and making sure they live just long enough. With the new update, I included a new chapter on "Pain Points". I think this is probably the place where detailed language comparisons should go! |
Actually, other tutorials and sources are at least decent about describing borrows, and how they compare to c/c++. That's actually not what I was referencing. What I appreciate are all the non-memory-management-related language comparisons and references. I know C, but I'm most proficient in java and python. For example... identifying that traits are very close to java interfaces. It was like a fast-forward in my understanding of how they work. I eventually would have recognized it on my own, and would have used that exact same connection in my own mental model. The cool part was having somebody actually telling me it's so, rather than me having to make that connection on my own, and then question and prove to myself whether it's valid or not. |
First example at http://stevedonovan.github.io/rust-gentle-intro/1-basics.html#learning-where-to-find-the-ropes
output when run in browser is
I know this is probably something trivial. But I'm a total n00b, and that's why I'm reading this tutorial!
The text was updated successfully, but these errors were encountered: