3 ms·
> No generic type A good macroprocessor can provide a similar capability (and much more). My favorite example is to simply use an ASP-like syntax, where you co
by Koshkin 3y ago
> No generic type
A good macroprocessor can provide a similar capability (and much more). My favorite example is to simply use an ASP-like syntax, where you could have the same language as your macro language, along with the "code inversion" brackets ("<%" in the case of ASP).
- imglorp 3y agoPlease no. That's how CFront worked in the late 80s: one of the first c++ compilers that emitted c for classes and generics. It was slow, clumsy, and errors completely opaque. It served to get c++ implemented quickly during its early years, but things got much better when real compilers came out. Hygienic macros integrated with a language, ok. But don't implement the language in a macroprocessor.