Skip to content

macro_rules should expose accessors for total iteration count and current iteration number #407

@pnkfelix

Description

@pnkfelix

macro_rules should expose accessors that map each Kleene-star/plus $(pat)<delim>* / $(pat)<delim>+ to a total iteration count and the current iteration number within the expansion template.

See RFC PR #88 for discussion, including on proposed syntax in the RFC itself, as well as much discussion about alternative syntaxes in the associated discussion.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-macrosMacro related proposals and issuesA-syntaxSyntax related proposals & ideasT-langRelevant to the language team, which will review and decide on the RFC.postponedRFCs that have been postponed and may be revisited at a later time.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions