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
Somehow turning inits into a literal 2 is a little trickier. It turns out that there's no direct way to do this, but we can do it by using a second macro_rules! macro.
Am I misunderstanding, or is there in fact a direct way if I use #![feature(macro_metavar_expr)] ?
The text was updated successfully, but these errors were encountered:
Yes metavar expressions will make counting very easy, but as they aren't stable yet, one has to stick to the more cumbersome counting tricks for non nightly toolchains.
I'm just reading through the book, and saw:
on https://veykril.github.io/tlborm/decl-macros/macros-methodical.html
Then I go to the next page and it says:
Am I misunderstanding, or is there in fact a direct way if I use
#![feature(macro_metavar_expr)]
?The text was updated successfully, but these errors were encountered: