6 ms·
What is the type safety story of the macro-based Lisp-style code generation? Macro-like code generation is what the compiler does when it processes type-parame
by nine_k 8y ago
What is the type safety story of the macro-based Lisp-style code generation?
Macro-like code generation is what the compiler does when it processes type-parametrized functions. It's more restricted that way, but it also prevents type-unsafe macro expansions due to mistake.
- dagss 8y agoI am not sure if I understand your question. If a macro expansion violates typing rule then you get a compile time error of course.. is it a question about the quality og error messages?
- weberc2 8y agoCrafting good macro error messages is really hard. Naively, they point into the expansion which is user-hostile. It's a fair bit easier (though still difficult) with certain implementations of generics.