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

Rename invoke #84

Open
Bronek opened this issue Jun 26, 2024 · 0 comments
Open

Rename invoke #84

Bronek opened this issue Jun 26, 2024 · 0 comments
Labels
refactoring Enough said

Comments

@Bronek
Copy link
Collaborator

Bronek commented Jun 26, 2024

The implementation of discriminated union relies on std::invoke (i.e. without multi-dispatch) for the purpose of implementing invoke, which demonstrates that we should not try to add multi-dispatch to std::invoke. Basically invoke (with multi-dispatch) has proven to be higher level than std::invoke, hence the former name is wrong (or confusing, at least).

This implies that what we currently call invoke should be called something else, perhaps apply or a new function dispatch. This also applies to member functions.

@Bronek Bronek added the refactoring Enough said label Jun 26, 2024
@Bronek Bronek mentioned this issue Oct 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
refactoring Enough said
Projects
None yet
Development

No branches or pull requests

1 participant