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
There seem to be a lot of "gotchas" when creating a new macro that accepts format arguments. I propose to add a recipe for such cases. Something like this, although my code might also need some improvements. Points of interest:
best way to capture format arguments - comma capturing is actually fairly tricky because foo!("{}", bar) can be auto-replaced with foo("{bar}"), which has no commas.
There seem to be a lot of "gotchas" when creating a new macro that accepts format arguments. I propose to add a recipe for such cases. Something like this, although my code might also need some improvements. Points of interest:
foo!("{}", bar)
can be auto-replaced withfoo("{bar}")
, which has no commas.The text was updated successfully, but these errors were encountered: