3 ms·
C++ dev here, not a rust dev. It is my understanding that Rust macros have some understanding of the syntax/parse tree, making them much safer than text replace
by sqeaky 4y ago
C++ dev here, not a rust dev. It is my understanding that Rust macros have some understanding of the syntax/parse tree, making them much safer than text replacement like c++ macros.
A better comparison to Rust macros might be constexpr and template meta-programming.