3 ms·
Rust has two form of macros: “macros by example” and “procedural macros.” The latter is basically a function from token streams to token streams, and macros by
by steveklabnik 4mo ago
Rust has two form of macros: “macros by example” and “procedural macros.”
The latter is basically a function from token streams to token streams, and macros by example are more traditional macros which were initially designed by Dave Herman, who was heavily involved in Racket.