News for hackers. Stuff that matters.
Re:An Open Letter to the Go Team About Try by codr7 on Wednesday July 03, 2019 @05:43PM (#20349146)
Unconditionally returning on errors all the way has exactly the same effect. Arguing that it's wrong isn't very constructive given that everyone seems to be doing it.

panic() is just another symptom of the same disease.

Exceptions are a very useful tool, and so is pattern matching and support for multiple returns. There is no one true way to handle errors.

Re:An Open Letter to the Go Team About Try by cpuguy83 on Wednesday July 03, 2019 @06:52PM (#20349737)
> Unconditionally returning on errors all the way has exactly the same effect.

No, an uncaught exception crashes the program. I guess you can generically catch all exceptions and get the same affect.

> panic() is just another symptom of the same disease.

Not sure what you mean here

> There is no one true way to handle errors.

Never said there was. I only made a comment that `try` does not fix how people are handling errors.