Is static metaprogramming possible in Java?

前端 未结 11 1155
無奈伤痛
無奈伤痛 2020-12-14 00:56

I am a fan of static metaprogramming in C++. I know Java now has generics. Does this mean that static metaprogramming (i.e., compile-time program execution) is possible in

11条回答
  •  死守一世寂寞
    2020-12-14 01:26

    Take a look at Clojure. It's a LISP with Macros (meta-programming) that runs on the JVM and is very interoperable with Java.

提交回复
热议问题