Using and Abusing Macros
damienradtke.com
damienradtke.com
For example, instead of
pub static SMITHY: Card = action! { "Smithy" costs 3 and calls do_smithy };
I’d written it as pub static SMITHY: Card = action! { "Smithy", 3, do_smithy };
Is this possible in Rust, or comas are special?I probably wouldn't ever use a macro like this in code worked on by multiple people, but for my own personal side project, I'm happy to abuse Rust's flexibility for my own enjoyment.