Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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: