Rust has no Nil or Null values in it. This design decision echoes throughout many of the other parts of the language and it especially effects how we handle errors in Rust. We can use the Option and the Result enumerations to help us get more information about the types of data that are flowing through our program. We can use them to further wrap and unwrap our values and errors. These types of abstractions come from languages like Haskell and Elm, both of which have very strong type systems and emphasize type safety to help the user write both fast and safe code. In this video, we explore these ideas and of the ways that Rust handles them.
If you enjoy the video, feel free to follow me on Steemit or on YouTube to get updates on the channel as well as more content.
If you like what I do, tips and upvotes are welcome:
ETH: 0xE448a8DDA5886C49d35B191B2F20630c103024c8
LTC: LXsKxF5JhmMtKgqfcUFdvcXVwiaSqxN9cP
Also, feel free to check out my channel for videos on Go, Elixir and Elm