logoalt Hacker News

9rxlast Tuesday at 6:15 PM1 replyview on HN

Of course, `if fruit != "Apple" { ... }` would leave you in the exact same situation. Is there a general solution to improving upon this? Seeing it as an error problem exclusively seems rather misguided. After all, there is nothing special or unique about errors. They're just state like any other.


Replies

adamrtlast Tuesday at 6:22 PM

I think its more of a comment that "err != nil" is used in the vast majority of cases, so you start to treat it as noise and skim it.

show 1 reply