You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is slightly related to #4 but goes further so I wanted to ticket it.
I would like to open a PR to change the return of decompress to error | {ok, Uncompressed}. The reason for that is that it will allow clearer matching and guarding against wrong returns.
This is slightly related to #4 but goes further so I wanted to ticket it.
I would like to open a PR to change the return of decompress to
error
|{ok, Uncompressed}
. The reason for that is that it will allow clearer matching and guarding against wrong returns.Right now using a code like:
can lead to odd errors in places where the error doesn't occur when the In value isn't a valid compressed binary.
It would require additional matching to guard against handing on invalid data For example:
returning a tuple would allow to guard against handing on bad data right during decoding time and failing fast:
The text was updated successfully, but these errors were encountered: