Rust 101 – 7: Panic error handling and Results


January 11, 2024 [Programming, Rust, Tech, Videos]

We learned about enums and generics last time, which means we’re ready to talk about Result, which is a really nice way to handle errors in Rust, allowing you to be more explicit about what went wrong, but also with a very concise syntax using ? operator. Before that we discuss panic!which basically stops your program with an error message, and is useful for handling errors that should never occur.

Series: Language basics, More syntaxTraits and generics, Building applications, Concurrency and parallelism, Trait objects, Async, Unsafe, FFI

This section (Full syntax): 5: References, 6: Structures and Enums, 7: Panic and Its Results8: Method, 9: Vecs and Squares, 10: Strings, 11: Exercise A2

Link:

The course materials for this series were developed by tweede golf. You can find more information at github.com/tweedegolf/101-rs and you can sponsor this work at github.com/sponsors/tweedegolf. They are released under the Creative Commons Attribution Share Alike 4.0 International license.

This video series is copyright 2023 Andy Balaam and tweede golf contributors and is released under the Creative Commons Attribution Share Alike 4.0 International license.



Teknologi Terkini

Agen Togel Terpercaya

Bandar Togel

Sabung Ayam Online

Berita Terkini

Artikel Terbaru

Berita Terbaru

Penerbangan

Berita Politik

Berita Politik

Software

Software Download

Download Aplikasi

Berita Terkini

News

Jasa PBN

Jasa Artikel

News

Breaking News

Berita