3 ms·
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
by ratscylla 2y ago
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 https://go.dev/blog/errors-are-values
- wvenable 2y agoYou'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.