Embed Notice
HTML Code
Corresponding Notice
- Embed this notice@lanodan @wolf480pl On the other hand it is explicitly mentioned in Rust docs that you shouldn't use unwrap in production code, while the correct way to do error handling is more complicated and less intuitive, which makes me think that Rust error handling isn't the greatest. Also a compiler flag to throw errors on .unwrap when compiling prod binaries would be useful.
It feels the same way as Golang in this regard, where error handling was "cooked in the pot" completely, but worse.