← findnix.eu
🎬 video.infosec.exchange video.infosec.exchange

Rust 101 - 7: Error handling with panic and Result

⏱ 20:18 🌐 video.infosec.exchange

We learnt about enums and generics [last time](https://diode.zone/w/igWqFMZwL5RSqrz2rmiErE), which means we're ready to talk about `Result`, which is a really nice way of handling errors in Rust, that allows you to be very explicit about what went wrong, but also with a very compact syntax using the `?` operator. Before that we discuss `panic!`, which essentially stops your program with an error message, and is useful for handling errors that should never happen. Links: * Slides: http://artificialworlds.net/presentations/rust-101/A2-advanced-intro * Exercises: https://artificialworlds.net/presentations/rust-101/exercises/A2-advanced-intro/mod.html Rust 101 is a series of videos explaining how to write programs in Rust. The course materials for this series are developed by tweede golf. You can find more information at https://github.com/tweedegolf/101-rs and you can sponsor the work at https://github.com/sponsors/tweedegolf . They are released under the Creative Commons Attribution S

β†—https://video.infosec.exchange/w/rXYXtuo8m3gwdKSRWvi1Lh
beginners coding programming rust rustlang
Indexiert von findnix.eu Β· Eigene Seite einreichen