Open rewk opened 1 year ago
Good question: this certainly is plausible to implement. I don't remeber why I didn't do it that way, one argument would be that rust format!
itself only supports identifiers, but that's a relatively week one.
I think we should just support arbitrary expressions there.
That would be very nice! Thanks!
Hi,
Would it be possible to allow using self.field in cmd! macros ? For example, this would allow to use a struct to store common args of commands.
I have not attempted to make the change, so that i don't know if it would be possible.
If the
self.
is removed from the above code, the compiler hints at something that would work.