We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 49f62a1 commit 9283856Copy full SHA for 9283856
src/coding-guidelines/macros.rst
@@ -31,7 +31,10 @@ Macros
31
32
In a declarative macro the ordering of the patterns will be the order that
33
they are matched against which can lead to unexpected behavior in the case
34
- where we have unique behavior intended for a particular expression.
+ where we have unique behavior intended for a particular expression. The concern
35
+ in particular is that while the ordering may be done correctly when the
36
+ macro match rules are written, it's possible in a refactor for them to
37
+ unintentionally be moved around in order.
38
39
If needing to specialize logic within the macro based on a particular
40
expression's value, it is better to not use a declarative macro with multiple rules.
0 commit comments