Skip to content

Commit

Permalink
expand 'mbe'
Browse files Browse the repository at this point in the history
  • Loading branch information
hkBst authored and Veykril committed Jun 21, 2022
1 parent bfa419d commit 0897de1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/decl-macros/patterns/internal-rules.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ macro_rules! foo {

Internal rules can be used to unify multiple `macro_rules!` macros into one, or to make it easier to read and write [TT Munchers] by explicitly naming what rule you wish to call in a macro.

So why is it useful to unify multiple mbe macros into one?
So why is it useful to unify multiple macros-by-example into one?
The main reasoning for this is how they are handled in the 2015 Edition of Rust due to `macro_rules!` macros not being namespaced in said edition.
This gives one the troubles of having to re-export all the internal `macro_rules!` macros as well polluting the global macro namespace or even worse, macro name collisions with other crates.
In short, it's quite a hassle.
Expand Down

0 comments on commit 0897de1

Please sign in to comment.