4 ms·
Rust-style error handling works better though - similar to Go, but with the addition of enums such that the precise types of errors which may be encountered can
by jen20 3y ago
Rust-style error handling works better though - similar to Go, but with the addition of enums such that the precise types of errors which may be encountered can be easily documented in the type system.
- dinkleberg 3y agoAgreed, I’d love if they would take inspiration from Rust and bring that to Go.
- jen20 3y agoYes - if Go had sum types (and they were idiomatically used in the standard library), it would take it from a pretty good platform to a first class one. The library ecosystem is already excellent, and the tooling is good, lack of sum types is the single wart that makes me regret it every time I pick Go up for a project.