Best Way to Convert Clojure Source to Java Source Automatically -


i want take working clojure source code files (.clj) , convert them equivalent java source code files (.java) automatically. i'm wondering best way or if possible. converted java source code need acceptable enough.

your best bet, others have pointed out, use bytecode decompiler. you'll still need clojure classes though. but, more importantly, if goal generate java code needs handled java programmers, unlikely you'll succeed.

clojure not "java different syntax". language constructs different java many things idiomatic clojure foreign in java.

even if java code more or less readable, java developers incredibly frustrated. they'd still need program lisp use java syntax , strange constructs: it'll mess.

if you're looking use clojure in team of java developers, i'd try develop , package clojure code jar defined java api. java developers happy, because it's java library, , you'll happy because you'll write proper clojure code.


Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -