2 ms·
> Can generics be used to improve error handling and eliminate the if err pattern? With the newly added type parameters on methods you can now implement monads
by sh0gg0the 2mo ago
> Can generics be used to improve error handling and eliminate the if err pattern?
With the newly added type parameters on methods you can now implement monads that do the function chaining and error handling like in Haskell. But it still wouldn't look as nice imho. This will probably become the next Golang anti-pattern.