3 ms·
How would you design the error handling? Personally I'm glad Go has stayed out of exceptions (panics don't count), at scale it's so much easier to reason about
by enw 6y ago
How would you design the error handling?
Personally I'm glad Go has stayed out of exceptions (panics don't count), at scale it's so much easier to reason about flow.
- bmn__ 6y agoMonadic error handling like in ML work-alikes, Rust etc. would be a good start. Adopt: • https://github.com/rebeccaskinner/gofpher https://github.com/rebeccaskinner/gofpher • https://speakerdeck.com/rebeccaskinner/monadic-error-handling-in-go https://speakerdeck.com/rebeccaskinner/monadic-error-handlin... I've been talking to the local Go user group. No one even knows about that concept. This continues a pattern of general ignorance/lack of looking beyond one's horizon I've noticed.