▲ | stouset a day ago | |
> With Go you need to specifically check the errors and intentionally decide what to do, do you handle it right there or do you bubble it upwards. Is this really all that interesting or worth the LOC spent on error handling when 99.9999% of the time in practice it’s just bubbled up? And any “context” added is just string wrapping. Approximately nobody types golang errors in a way that lets you programmatically know what went wrong, to be able to fix it in-line. I think I would be more empathetic to the arguments defending golang here if I’d ever worked or seen a project where people actually handled errors instead of spending 2/3 of their time writing code that just punts on any error. |