News for hackers. Stuff that matters.
Re:Thirteen Years of Go by Xeoncross on Friday November 11, 2022 @06:02PM (#33568001)
I've written a lot of try/catch but no one in those languages do that for every branch, it's usually just everything wrapped in a big try/catch.

Go makes you deal with the error every single time something could go wrong, so you have a chance to do the right thing and append context at every single failure path.

Re:Thirteen Years of Go by kaba0 on Friday November 11, 2022 @09:01PM (#33569252)
Go makes you believe you dealt with the error, but instead you just forget about it.

Also, checked exceptions are very much not like that, and being able to handle errors of a logical unit is also beneficiary (e.g. transactions). You are free to use the scope-size that makes sense for the given use case.

Re:Thirteen Years of Go by Xeoncross on Saturday November 12, 2022 @04:05PM (#33577069)
> Go makes you believe you dealt with the error, but instead you just forget about it.

Can you explain that? Touching every context of an error propagation seems opposite of forgetting about it.