Compatability with io.Closer
#797
Unanswered
calebstewart
asked this question in
Q&A
Replies: 1 comment 2 replies
-
I just realized I somehow missed the I'm not going to immediately close this issue, though. I'm curious about the decision to not just change the return type of Happy to be wrong, but thought I'd ask the question, since just changing the return type seems simpler and doesn't have any negative consequences that I am aware of. :) |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I noticed today while using the
zstd.Decoder
that it does not properly implement theio.Closer
interface. TheClose()
method should return anerror
. I'm not sure if this was an oversight or an explicit decision.Is it possible to add a
error
return value fromClose()
even if it always returnsnil
in order to comply withio.Closer
?Beta Was this translation helpful? Give feedback.
All reactions