3 ms·
Can you give some examples? (Not doubting. I don't know much about Clojure and I'm curious.)
by chancho 18y ago
Can you give some examples? (Not doubting. I don't know much about Clojure and I'm curious.)
- andreyf 18y agoMy only experience with Clojure is reveiwing Stuart Halloway's books on it, so this is certainly not the most qualified opinion you'll get, but as others have mentioned, tail-call optimization (lack thereof in the JVM, that is) significantly affected the language. It's not possible on the JVM, so Clojure relies heavily on the 'recur' keyword, so that recursive code can be translated into non-recursive bytecode. Another language feature that could be ignored is the trampoline, which is made easy with the #(foo 'bar %1) notation, but can be ignored if you're not worrying about the JVM. Aside from that, I would be very interested in seeing a Parrot Scheme based on ideas from Arc and Clojure both.