Stream: general

Topic: `?` in macros


RalfJ (Feb 10 2019 at 14:15, on Zulip):

Is it expected that a macro variable declared with $($mutability:ident)? can be used as $($mutability)*?

kennytm (Feb 10 2019 at 16:36, on Zulip):

It is not specific to ?, you could expand $($a:tt)* with $($a)+ as well. Not sure if expected or not.

RalfJ (Feb 10 2019 at 16:40, on Zulip):

hm, what's weird

RalfJ (Feb 10 2019 at 16:40, on Zulip):

? is a "subset" of * so that IMO still makes more sense than using + to expand a * (or ?)

Last update: Nov 20 2019 at 11:30UTC