4 ms·
Macros let you do work at compile-time like inspect the types of their parameters. A macro can do things like automatically generating code that converts functi
by AgentME 7y ago
Macros let you do work at compile-time like inspect the types of their parameters. A macro can do things like automatically generating code that converts function's return type into a JSON string.
If you need that, use a macro, but otherwise, you can and probably should use a function.