On Mon, Jun 21, 2021 at 11:53 PM Steven Penny <srp...@gmail.com> wrote:

> Thanks for the responses, but I am not convinced. Other than "its just good
> practice", I havent seen a single concrete example where not closing a gzip
> reader would cause a problem.


This is what we call a black swan fallacy.


> Until that happens, I am just going to stop doing it in my code.
>

That's certainly your prerogative. Your code will be incorrect. But it's
hardly our responsibility to stop you from willingly writing incorrect code.

As far as Im concerned, gzip Close seems about as useful as io.NopCloser.
> Again,
> if I am wrong on this, I certainly want to know it, but at this moment it
> doesnt
> seem that I am.

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/CAEkBMfE3MimApbr%2BtF6aLrboaf5XqwMMoQWFB%3DmpCoyYiT788Q%40mail.gmail.com.

Reply via email to