2 ms·
unwrap() and expect() are defined as panic-if functions. It’s one of the first things you learn when writing Rust code. Calling them innocuous or being surpris
by Aurornis 2y ago
unwrap() and expect() are defined as panic-if functions. It’s one of the first things you learn when writing Rust code.
Calling them innocuous or being surprised that they can panic suggests this person hasn’t really learned much Rust at all.