Re:Object-Oriented Programming in Oberon-2 [pdf]
by imglorp on Monday November 20, 2023 @08:42PM
(#38357717)
Please 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.
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).