4 ms·
Ever since I started writing Go professionally I've gotten into the habit of annotating errors in other languages as well. The difference between Go and Haskell
by YuukiRey 5y ago
Ever since I started writing Go professionally I've gotten into the habit of annotating errors in other languages as well. The difference between Go and Haskell is then mostly one of a few characters and some syntax differences. But conceptually it's exactly the same.
Take the error returned by some function call, add a bit more context so I can differentiate this XYZ error from the others, then pass it along to the caller.
I really couldn't care less about the details of how that happens and I find it puzzling that someone would write such a lengthy blog post about what is to me a completely trivial matter.
- azth 5y agoOther languages have stack traces, so you don't have to reinvent the wheel in an inferior manner.