3 ms·
AST Macros are useful for AST level manipulation, but the problem is that usually at that point you do not have full type information (name resolution or even t
by gpderetta 10y ago
AST Macros are useful for AST level manipulation, but the problem is that usually at that point you do not have full type information (name resolution or even type inference hasn't run yet), so they can't take decision depending on types which is sometime what you want.
C++-like templates can be seen as type level macros (or rewrite rules) and run with full type information.