7 ms·
Java honestly provides both, and it does it extremely well! I personally prefer to use Kotlin, but same idea.
by syspec 3y ago
Java honestly provides both, and it does it extremely well! I personally prefer to use Kotlin, but same idea.
- paulddraper 3y ago> Java honestly provides both I think there is a serious disconnect about what is "metaprogramming."
- kccqzy 3y agoAgreed. I was going to say Haskell does both very well, but that's impossible to agree or disagree without first agreeing on a definition for metaprogramming.
- munificent 3y agoJava can do some fairly powerful stuff with reflection and classloaders, but isn't anywhere near the level of runtime flexibility you can get with Smalltalk or Ruby where the entire running program is a mutable data structure you can programmatically introspect over and modify.
- kaba0 3y agoWell, groovy runs on top of the JVM and can change every method even on an object-level, or even implement how non-defined functions are to be run.