3 ms·
Slowly reinventing exceptions seems to go against the spirit of Go. That is what you read is what you get. Haskell solves this with the do notation, but the pr
by bravesoul2 1y ago
Slowly reinventing exceptions seems to go against the spirit of Go. That is what you read is what you get.
Haskell solves this with the do notation, but the price is understanding monads. Go also aims to be easy to understand.
- thayne 1y agoThe proposals aren't reinventing exceptions. They are just making more ergonomic syntax for doing the same thing go error handling does today.
- bravesoul2 1y agoYou can argue that is what an exception is. A more ergonomic way to deal with errors that handles propagation for you.
- thayne 1y agoThat doesn't mean that any ergonomic way to handle errors is necessarily an exception system. Rust's ? operator is more ergonomic than go's error handling, but it is definitely not an exception system.