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

dispatch macro doesn't support dispatching on overall types and variants at the same time #59

Closed
Tortar opened this issue May 22, 2024 · 2 comments

Comments

@Tortar
Copy link
Member

Tortar commented May 22, 2024

e.g. in the example in the readme, let's say only B has a special value

@dispatch value(::B) = 2

then it would be useful if this would also work to reduce verbosity:

@dispatch value(::A) = 1

which would mean that all other kinds have that value

@Tortar
Copy link
Member Author

Tortar commented Jun 1, 2024

Now this is partially supported because it is possible to use @dispatch with @sum_structs types, but still mixing these types with variants in the signature is not supported

@Tortar Tortar changed the title dispatch macro still doesn't support dispatching on the overall type dispatch macro still doesn't support dispatching on overall types and variants at the same time Jun 22, 2024
@Tortar Tortar changed the title dispatch macro still doesn't support dispatching on overall types and variants at the same time dispatch macro doesn't support dispatching on overall types and variants at the same time Jun 22, 2024
@Tortar
Copy link
Member Author

Tortar commented Jul 6, 2024

new methodology solves this

@Tortar Tortar closed this as completed Jul 6, 2024
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

No branches or pull requests

1 participant