As the other posters mention, Clojure does have a compiler. However, you don't always need to use it explicitly.
Clojure will compile all input before executing it and once it's compiled it runs with the exact performance it would if it had been compiled ahead of time. There's no interpreted layer in Clojure as there is in some other languages. Some users like to pre-compile files (to obfuscate code, to speed startup time) and others prefer pure source distribution (smaller, more compatibility between versions). I would recommend not worrying about it unless you have a specific reason to do it, but neither direction would be "wrong" or "non-mainstream." Sometimes the toolchain you're using makes one way easier or harder (slightly). For example, I've noticed folks using maven tend to pre-compile whereas folks using leiningen tend not to, but either way is possible with both tools. In the end, it's mostly just a matter of taste. Tom On Aug 25, 7:17 pm, HB <hubaghd...@gmail.com> wrote: > Hey, > Both Groovy and Scala have a compiler to produce class files. > Does Clojure has a compiler? > Do Clojure files are compiled usually? > Thanks. -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en