haskelllispclojuremetaprogrammingboo

Non-C++ languages for generative programming?


C++ is probably the most popular language for static metaprogramming and Java doesn't support it.

Are there any other languages besides C++ that support generative programming (programs that create programs)?


Solution

  • The alternative to template style meta-programming is Macro-style that you see in various Lisp implementations. I would suggest downloading Paul Graham's On Lisp and also taking a look at Clojure if you're interested in a Lisp with macros that runs on the JVM.

    Macros in Lisp are much more powerful than C/C++ style and constitute a language in their own right -- they are meant for meta-programming.