Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
aleksiy123
3 months ago
|
parent
|
context
|
favorite
| on:
Why Go's Error Handling Is Awesome
In google c++ there are two macros which I feel make it look a lot nicer.
ASSIGN_AND_RETURN(auto var, status_or);
And
RETURN_IF_ERROR(status);
Which are just more ergonomic with the drawback of being macros.
Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: