News for hackers. Stuff that matters.
Re:Exploring Error Handling Patterns in Go by BreakfastB0b on Thursday August 16, 2018 @01:35AM (#17772180)
Error/Either monads are the perfect middle ground IMHO. You get errors as data types and an efficient way to abstract away the boilerplate associated with it.
Re:Exploring Error Handling Patterns in Go by place1 on Thursday August 16, 2018 @04:45AM (#17773050)
Yes, I quite liked this about Rust's `Result` and `Option` type and using monads in general but I don't think Golang could achieve this pragmatically without generics.