3 ms·
> A macro processor is not of the language; it is above the language. Then feel free to use the C preprocessor with Rust, it works just as well. :P Just like i
by kibwen 10y ago
> A macro processor is not of the language; it is above the language.
Then feel free to use the C preprocessor with Rust, it works just as well. :P Just like it does with Python, and Java, and...
- int_19h 10y agoBetter yet, use m4.
- kazinator 10y agoThe C preprocessor can only be used with Python as long as you don't do anything multi-line: #define whatever(param) \ foo: \ bar \ baz I made a preprocessor some 18 years ago that could be used with Python. Wayback Machine: https://web.archive.org/web/20000815202258/http://users.footprints.net/~kaz/mpp.html https://web.archive.org/web/20000815202258/http://users.foot...