3 ms·
Thanks for replying Steve. I appreciate all of the work you do make rust accessible to new programmers. Don't mind the downvotes as I just wrote from vague mem
by pritambarhate 7y ago
Thanks for replying Steve. I appreciate all of the work you do make rust accessible to new programmers.
Don't mind the downvotes as I just wrote from vague memory without properly verifying things.
I tried to look through my Google history to see how I landed into that specific problem. But was not able to find out how exactly I landed on that syntax issue about writing files. If it helps here is my chronological Google Search and visit history on that day about how I finally went from "try" macro to understanding how "?" operator is used in Rust.
* Searched for "try macro rust"
* Visited "std::try! - Rust"
* Visited "Learning to 'try!' things in Rust - Jonathan Turner"
* Searched for "rust expected expression, found reserved keyword `try`"
* Visited "Try keyword reservation breaks macro try - The Rust Programming ..."
* Searched for "rust try macro removed"
* Visited "Error Handling - The Rust Programming Language"
* Visited "How to use ? and catch in Rust? - Stack Overflow"
* Searched for "rust optional unwrapping"
* Visited "What is unwrap in Rust, and what is it used for? - Stack Overflow"
* Visited "Killing unwrap() • Dimitri Merejkowsky - dmerej.info"
* Searched for "rust ? operator"
* Visited "The ? operator for easier error handling - The Edition Guide"
- steveklabnik 7y agoThanks so much! This is helpful.
- ldng 7y agoThat is very important. Because, personnally, I never rely on one source of information. Problem is, as illustrated, what a good source beside the official doc ? Adding insult to injury, not that it is specific to Rust, there are so many bloggers out there that don't put a date and/or give version of the software they're talking about that you just can't know if the info is correct or obsolete.