by fizzbatter · 10y ago · 0 comments
With that said though, i have a hard time understanding complaints like:
> if err != nil { gets old even faster.
I may be biased, because my time in frontend JS land, but i love checking errors every time. It's a language feature to me.
Ignoring errors and expecting something else to care and catch/handle them is just.. worrying to me. Likewise,
try
.. stuff ..
catch
.. stuff ..
Gets far older to me than `if err != nil {`. But that's just me i suppose.Have you ever checked out Maybe (http://learnyouahaskell.com/a-fistful-of-monads#getting-our-...)?