Hacker News new | ask | show | jobs
by JoelSanchez 3133 days ago
"In Java, 70% of duplicates were due to code generation. For C++ is was 18%, for Python 85%, for JavaScript 70%."

In the case of Java and JavaScript, there's already a language that is built on top of them and has macros. It's Clojure/ClojureScript.

1 comments

Two actually, you forgot Scala/Scala.js ;-)

disclaimer: I won't argue about the superiority of one macro system over another, the point is that macros exist in both languages.