Add substitute
macro(s)
#49
Labels
D-accepted
A decision (D) has been made and the issue will be worked on
I-feature
This issue (I) regards a (potential) feature in the project
T-accepted
Triage (T): Initial review accepted issue/PR as valid
Short Description:
Provide
substitute
andsubstitute_item
which only provide the global substitution feature of the main macros.Motivation:
Sometimes,
duplicate
may be used only to avoid repeating something within the code, but not to duplicate the whole thing.Providing these macro would make the intent more clear for readers of the code that no duplication is happening.
Design
Misc:
Provide
substitute!
andsubstitute_item
as synonyms forduplicate!
andduplicate_item
respectively, where only global substitutions are allowed.The text was updated successfully, but these errors were encountered: