rfcs icon indicating copy to clipboard operation
rfcs copied to clipboard

[RFC] Named macro capture groups

Open tgross35 opened this issue 1 year ago • 8 comments

This RFC proposes optional names for repetition groups in macros:

macro_rules! foo {
    ( $group1( $a:ident ),+ ) => {
        $group1( println!("{}", $a); )+
    }
}

Rendered

Small Pre-RFC: https://internals.rust-lang.org/t/pre-rfc-named-capture-groups-for-macros/20883

tgross35 avatar May 29 '24 00:05 tgross35