this post was submitted on 11 Jan 2024
2 points (100.0% liked)

Andy Balaam's programming lectures

0 readers
1 users here now

Talks about Scheme Lisp, Raspberry Pi, Rust, Python, JavaScript, Java (even Ant!). So long as it's programming, I'm happy!

founded 2 years ago
 

We learnt about enums and generics last time, 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:

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 Share Alike 4.0 International license.

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

no comments (yet)
sorted by: hot top controversial new old
there doesn't seem to be anything here