You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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 invokedfoo!(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.The text was updated successfully, but these errors were encountered: