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

relationship to specialization #6

Open
benkay86 opened this issue Jul 29, 2022 · 0 comments
Open

relationship to specialization #6

benkay86 opened this issue Jul 29, 2022 · 0 comments
Labels
question Further information is requested

Comments

@benkay86
Copy link

benkay86 commented Jul 29, 2022

Part of the keyword generics proposal involves writing a single function that is generic over sync and async contexts, but whose implementation can be specialized depending on which context it is invoked in. The const_eval_select intrinsic is one (unstable) pattern for specialization that might be used more broadly for keyword generics. impl specialization (specifically a sound subset of the original 2015 RFC) is another unstable pattern for specialization. Do you see a synergy between specialization and keyword generics?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant