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

Update loadOrStoreAlg to accept type parameters #63

Merged
merged 4 commits into from
Sep 27, 2024
Merged

Conversation

qmuntal
Copy link
Member

@qmuntal qmuntal commented Sep 26, 2024

loadOrStoreAlg is a bit cumbersome to use because it requires the caller to cast the return value to the correct type and handle the errors.

This PR updates loadOrStoreAlg so that callers don't have to type-cast the returned value nor handle the error by using type parameters.

Base automatically changed from bumpgo to main September 26, 2024 09:53
cng/cng.go Show resolved Hide resolved
cng/ecdh.go Show resolved Hide resolved
cng/cng.go Outdated Show resolved Hide resolved
cng/cng.go Show resolved Hide resolved
@qmuntal qmuntal requested a review from karianna September 27, 2024 08:18
@karianna karianna merged commit c5bbacc into main Sep 27, 2024
17 checks passed
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.

4 participants