动态

讨论异常处理导致编译时错误难捕捉

Gergely Orosz
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?!)
The Pragmatic Engineer
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
动态Gergely Orosz2026-05-25原文

相关内容