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
Currently this is possible only by storing proc_macro2::Punct in a variable and interpolating that into a quote! { ... } block. It would be nice have a nicer way for this.
While functionally it doesn't make any difference, it could make the generated code more readable for debugging purposes and also allows to use quote as a general code generation mechanism outside of proc macros.
The text was updated successfully, but these errors were encountered:
Fair enough. That code you pasted there shows the exact problem though: densely packed without any empty lines between things, not readable at all :)
I'll continue to interpolate newlines into quote! { ... } blocks then for the meantime, it's not worth creating a new macro around quote just for this.
Currently this is possible only by storing
proc_macro2::Punct
in a variable and interpolating that into aquote! { ... }
block. It would be nice have a nicer way for this.While functionally it doesn't make any difference, it could make the generated code more readable for debugging purposes and also allows to use
quote
as a general code generation mechanism outside of proc macros.The text was updated successfully, but these errors were encountered: