3 ms·
Rust's Result type is way less verbose than Go's error handling though. Checked exceptions would have been fine if they composed decently with rest of the lang
by KptMarchewa 5y ago
Rust's Result type is way less verbose than Go's error handling though.
Checked exceptions would have been fine if they composed decently with rest of the language...
- heavyset_go 5y agoWith Rust's result type, you either have to unwrap() them or explicitly handle them with match expressions, whereas if you really wanted to in Go, you could just choose to ignore errors.
- KptMarchewa 5y agoRust has extremely useful "?" operator.
- heavyset_go 5y agoYep, I mentioned that up-thread. It's a very convenient feature.