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
As mentioned on IRC, this has already been filed as #12782 and #12916, and in both cases the decision was that this has to go through the RFC process. I filed an RFC that covered this as rust-lang/rfcs#88, which has lots of discussion, and the ultimate decision was that this is a post-1.0 feature.
If you have any feedback on this, commenting on that RFC is probably the best bet, as that's likely to be the starting point for any further discussion of this post-1.0.
It would be really swell if you could somehow access the index or depth of the current repeat in a macro.
Say if we are repeating with
$($x)
, then$#x
would yield the index of the current$x
in the sequence.The
$#
is really not important, could be anything else really.For example:
Would expand to:
Thoughts?
The text was updated successfully, but these errors were encountered: