Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
tedunangst
on June 1, 2024
|
parent
|
context
|
favorite
| on:
Go: Sentinel errors and errors.Is() slow your code...
The nil check is not more expensive.
SPascareli13
on June 1, 2024
[–]
Did you read the article? It clearly show that it is. I just don't understand why.
tedunangst
on June 1, 2024
|
parent
[–]
Calling errors.Is is slower than not calling errors.Is.
Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: