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

Building Blocks: Add Macro to implement on 0 to n-ary tuples #17

Open
Veykril opened this issue Sep 25, 2020 · 0 comments
Open

Building Blocks: Add Macro to implement on 0 to n-ary tuples #17

Veykril opened this issue Sep 25, 2020 · 0 comments
Labels
enhancement New feature or request

Comments

@Veykril
Copy link
Owner

Veykril commented Sep 25, 2020

One point where macros still shine a lot is when implementing things on a bunch of different tuples to "emulate" variadic generics.

What I mean with this is a macro that when invoked like foo!(A, B, C, D, E) will continue invoking subsets of this, so it will invoked foo!(A, B, C, D)/foo!(B, C, D, E) which then invokes it again for only 3, then 2, then 1 and finally finishes recursing.

@Veykril Veykril added the enhancement New feature or request label Oct 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant