讨论异常处理导致编译时错误难捕捉
I'm so used to using languages with exceptions that I didn't really consider how the exceptions concept leads to errors much harder to catch compile time... or that at compile time, you can do a lot more.
(Ofc w exceptions you always have error monitoring + alerting... right?!)
(Ofc w exceptions you always have error monitoring + alerting... right?!)
In Rust, error handling is opt-out, not opt-in. Alice Ryhl (Rust for Android at Google, Rust language advisor & Tokio maintainer) explains:
“The other thing I think is quite good is error handling. So on one hand, Rust doesn't really use exceptions, so it actually returns the https://t.co/6GJYw1JcmU