Thank you for this video. I just wanted to add, another advantage of using a crate level Error enum is that if you are emitting the errors in different ways, like printing out, or returning as a server response, or pushing into a central system, your extra work would be just implementing conversions to that enum.
There is some confusion at 25:17. However, to make this idea work you can do it like this: `.map_err(|_err| "could not create file")?;`, i.e. `map_err` returns the value contained in the Err variant, not the whole variant itself.
Really enjoyed your content! One thing: The video would be way nicer to watch without all the „ehem“ and „aahmm“ - it is worth it to train and let there be just some silence between the words 😊
Thank you so much for the video! I didn't know you had a YT channel. I just picked up your book, Rust in Action! Thanks so much for all your teaching!
Some video editing to shorten the video would be very useful
watching *2 helps and he has added timestamps
This is awesome! This kind of high quality, advanced topics in rust is really absent in youtube. Thanks for sharing it :D
Thank you for this video.
I just wanted to add, another advantage of using a crate level Error enum is that if you are emitting the errors in different ways, like printing out, or returning as a server response, or pushing into a central system, your extra work would be just implementing conversions to that enum.
Excellent point. Thank you for adding your thoughts.
There is some confusion at 25:17. However, to make this idea work you can do it like this: `.map_err(|_err| "could not create file")?;`, i.e. `map_err` returns the value contained in the Err variant, not the whole variant itself.
came here to say this. there's a confusion between the Result type and the Err variant, which is common!
Going through the Rust learning journey with you is amazing. Thanks for that.
Really enjoyed your content!
One thing: The video would be way nicer to watch without all the „ehem“ and „aahmm“ - it is worth it to train and let there be just some silence between the words 😊
Thanks for the advice. You'll find that more recent videos of mine are much more polished
unwrap .. because Result should be understood as a functor / monad
Привет я на этом канале сново увидел шедевр это видео прекрасно как и остальные
hey it would be nice if you provide timestamps for longer video like this. other than that this is a good video with good story telling 💪
Done :)