Few notes: You don't have to specify the option type in the functions, the compiler can infer it, given it is returned from the function. I believe your issue was that you didn't write the code returning the option yet, so it couldn't. Rather than declaring the option variables as mutable, I think it would be better to redeclare them, but then the type of the original couldn't be inferred, so maybe commenting it out would be better. Rather than the `if charresult.is_some()` and then unwrapping, it would be better to do `if let Some(char) = charresult`, or just pattern matching it.
Seriously this is very hard to understand, i was just all over the place . But good i am exposed to it let me find other places where its implemented in real projects so i can learn more
Check out the full Rust programming playlist! 🦀 th-cam.com/play/PLDbRgZ0OOEpUkWDGqp91ODn0dk7LPBAUL.html
Few notes: You don't have to specify the option type in the functions, the compiler can infer it, given it is returned from the function. I believe your issue was that you didn't write the code returning the option yet, so it couldn't. Rather than declaring the option variables as mutable, I think it would be better to redeclare them, but then the type of the original couldn't be inferred, so maybe commenting it out would be better. Rather than the `if charresult.is_some()` and then unwrapping, it would be better to do `if let Some(char) = charresult`, or just pattern matching it.
Great videos. Which VS Code Theme are you using?
@@gunnarbernstein9363 thanks! It's Outrun by samrapdev
11:33
why the function name (main) is repeated at the end?
fn main() {} fn main ?
That's not actual code. That's just the editor showing you where the end of the main function is.
I'd suggest using "Some(value)" as the final expression and not "return Some(value);" or "let returnvalue = Some(Value); return returnvalue;"
good explanation.
thank you, like your channel.
👍
this is hard to understand without implementing it in real life example
Thanks for the good work 🙌
I hope you're learning lots of great stuff about Rust programming! 🦀🦀
Yes, I am learning and getting better by the day
Outstanding
Seriously this is very hard to understand, i was just all over the place . But good i am exposed to it let me find other places where its implemented in real projects so i can learn more