Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reorder the parameters of miniz checksum APIs #322

Merged
merged 1 commit into from
Oct 8, 2023

Conversation

Duckwhale
Copy link
Member

The documentation has this inverted, presumably because it was the more intuitive order. I understand that checksums are "objects" internally and so passing it as the first parameter might make sense from a technical perspective, but as a user of the API it's confusing.

The most common use case is "give me the checksum of this string", and optimizing for the common case means moving the IV so that it feels more optional than the actual input - even if, technically speaking, both are optional (as per the code).

The documentation has this inverted, presumably because it was the more intuitive order. I understand that checksums are "objects" internally and so passing it as the first parameter might make sense from a technical perspective, but as a user of the API it's confusing.

The most common use case is "give me the checksum of this string", and optimizing for the common case means moving the IV so that it feels more optional than the actual input - even if, technically speaking, both are optional (as per the code).
@Duckwhale Duckwhale merged commit 61f5ab3 into main Oct 8, 2023
9 checks passed
Duckwhale added a commit that referenced this pull request Oct 10, 2023
Reorder the parameters of miniz checksum APIs
@Duckwhale Duckwhale deleted the miniz-input-ordering branch October 11, 2023 00:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant