Skip to content

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

Open
@Veykril

Description

@Veykril

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions