Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
ladberg
on Nov 9, 2021
|
parent
|
context
|
favorite
| on:
Upcoming Features in Go 1.18
I don't see how those are mutually exclusive. You could do something like:
x, err := f(); if err != nil return fmt.Errorf("More context -> %s", err)
(I'm not attached to that specific syntax, it's just an example of a hypothetical one-liner)
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: