Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
marcrosoft
· 2y ago · 0 comments
I’m still using if err == something. I’ve never bothered to use error.Is. Looks like another reason to avoid
Comments
[–]
zachmu
2y ago
The problem is error wrapping. Somebody deeper in the stack can break your equality check.