Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
boomlinde
8 months ago
|
parent
|
context
|
favorite
| on:
Go: Sentinel errors and errors.Is() slow your code...
I would argue that "not found" is already present in the form of boolean "ok" return values, in cases where it really isn't an exceptional error state. On the other hand, the standard library implements things like errors.NewNotFound
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: