2 ms·
They are. Procedural macros especially are a function that takes tokens and returns tokens, and have the full language at their disposal.
by steveklabnik 7y ago
They are. Procedural macros especially are a function that takes tokens and returns tokens, and have the full language at their disposal.
- tines 7y agoAh interesting. But I imagine that token-based macros don't give you access to the types in the program being compiled do they? i.e. a c++ template can tell when two types are the same but a token level macro wouldn't be able to do that I think.
- steveklabnik 7y agoCorrect.