Macro
Noun · Development
Definitions
A rule or pattern that generates or transforms code at compile time, expanding shorthand into more complex expressions — used in C preprocessor, Rust, Lisp, and other languages.
In plain English: A shortcut that tells the compiler to automatically expand a small piece of code into a bigger, more complex piece before compiling.
Example: "The Rust macro saved us from writing the same boilerplate for twenty different types."