New Rustacean

e003: No. more. nulls.


Listen Later

No More Nulls - Date: October 21, 2015 - Subject: Enumerated (`enum`) types, pattern matching, and meaningful return values. # Notes Today’s episode discusses, in order: - Enumerated types, with an eye to the difference between structs and enums, and to the differences between enums in C and in Rust. - Pattern matching, with a focus on using them with enumerated types and some discussion about how they differ from switch blocks in C-like languages. - Using the Option and Result enumerated types with pattern matching to provide meaningful returns from functions safely. ## Order There is a specific order to the examples below, and it is _not_ the automatically-alphabetized order rendered by rustdoc. Instead, you should work through in the sequence they appear in the source: 1. RelatedishThings 2. demonstrate_basic_enumeration 3. demonstrate_match 4. get_an_option 5. demonstrate_option 6. get_a_result 7. demonstrate_result
...more
View all episodesView all episodes
Download on the App Store

New RustaceanBy Chris Krycho

  • 4.8
  • 4.8
  • 4.8
  • 4.8
  • 4.8

4.8

81 ratings


More shows like New Rustacean

View all
The Changelog: Software Development, Open Source by Changelog Media

The Changelog: Software Development, Open Source

292 Listeners

Python Bytes by Michael Kennedy and Brian Okken

Python Bytes

214 Listeners

Practical AI by Practical AI LLC

Practical AI

213 Listeners

The Real Python Podcast by Real Python

The Real Python Podcast

141 Listeners