Hacker News new | ask | show | jobs
by SPascareli13 753 days ago
How is this not a compiler bug? What would justify a nil check being many times more expensive then a bool check?
1 comments

The nil check is not more expensive.
Did you read the article? It clearly show that it is. I just don't understand why.
Calling errors.Is is slower than not calling errors.Is.