3 ms·
You may be right but prepros are what I'm familiar with and AST-mungers I'm not. The best solution is better language features. I get the PP = DSL (not a proble
by throwaway_pdp09 6y ago
You may be right but prepros are what I'm familiar with and AST-mungers I'm not.
The best solution is better language features. I get the PP = DSL (not a problem) that makes the link between original DSL code and the produced code very obscure (big problem) but they are needed at times.
Thanks for pointing me at AST transformers.
- dnautics 6y agoYou should also check out zig's comptime, it's fantastic.