News for hackers. Stuff that matters.
Re:Hurl, the Exceptional Language by ratscylla on Sunday May 26, 2024 @09:43AM (#40482135)
I think people like it because the control flow of a given program is more obvious when you write it that way. No one can "throw Foo" three libraries down from their caller as an "API". See https://go.dev/blog/errors-are-values
Re:Hurl, the Exceptional Language by wvenable on Sunday May 26, 2024 @09:16PM (#40486777)
You're just trading one type of control flow visibility for another. With even the most basic amount of error-return handling the actual control flow of your program is quite obscured.