Hacker News new | ask | show | jobs
by justinsb 4209 days ago
What if the out.Write (which is presumably in "some code") has already set err? Then we lose _that_ error, if out.Close returns error.

I think this is tricky in any language.