
Error Propagation with ?: So Simple, So Smart
- Chris Woodruff
- May 4, 2025
- Rust
- .NET, C#, dotnet, programming, rust
- 0 Comments
Day 24… today we’re digging into one of my favorite “why doesn’t every language have this?” features in Rust: the ? operator.
If you’ve spent any time in C#, you’re no stranger to the good ol’ try/catch flow. You wrap some code in a try, you catch the exception, and you hope you didn’t forget to check for null or some unexpected state.
Rust takes a different approach with Result