4 ms·
Rust macros are not hygienic. The biggest issue with this, I suspect, is the visibility limitation: due to lack of hygiene a macro can only refer to a public va
by justinpombrio 3y ago
Rust macros are not hygienic. The biggest issue with this, I suspect, is the visibility limitation: due to lack of hygiene a macro can only refer to a public value. Thus some crates will publicly expose a value with a doc string saying "this is supposed to be private please don't abuse it our you'll clobber the invariants this crate otherwise upholds".
https://doc.rust-lang.org/reference/macros-by-example.html#hygiene https://doc.rust-lang.org/reference/macros-by-example.html#h...