eik
Joined 2 years ago
Karma
17
Submissions
16
Member since
Sep 2
Joined 2 years ago
https://news.ycombinator.com/item?id=44959638
Let's now look at how errors.Is can introduce subtle bugs that can affect the reliability of error checking, especially when trying to determine the root cause of an error.
How one letter can make such a difference…
The Blog Post
I walk through the core mechanics, point out how the dynamic type (pointer vs. value) matters, and offer a simple, effective two-step approach to prevent these silent bugs.