mashup
mashup copied to clipboard
Concatenate identifiers in a macro invocation
```rust #[macro_use] extern crate mashup; mashup! { sub1["y"] = Y y; } mashup! { sub2["z"] = Z z; } sub1! { struct "y"; } sub2! { struct "z"; } fn...
The following should fail to compile. ```rust mashup! { m["x"] = a "+" b; } ```
This is a consequence of hygiene rules. ```rust #[macro_use] extern crate mashup; fn main() { let yy = 0; mashup! { m["y"] = y y; } m! { println!("{}", "y");...