4 ms·
Is it possible to have a syntax extension (or even macro?) that creates identifiers that wouldn't be legal in plain source code?
by ben0x539 9y ago
Is it possible to have a syntax extension (or even macro?) that creates identifiers that wouldn't be legal in plain source code?
- Manishearth 9y agoIt can try to; but it will fail to parse, usually (both macros and new-style syntax extensions go through a sort of re-parse step) Old-style (AST-based, unstable, will go away) syntax extensions can do this. But this isn't relevant, the compiler can define custom syntax extensions that do whatever it wants :)