|
|
|
|
|
by tov_objorkin
2376 days ago
|
|
unwrap() or expect() unconditionally smash program execution in case of error.
Properly written program should handle such errors or use unwrap_or_* as fallback.
The point is that unwrap/unsafe is breaking safety rules, user writing one know what hes doing or just don't bothering. |
|
https://doc.rust-lang.org/nomicon/unwinding.html