just curious how clojuresque works

67 views
Skip to first unread message

john

unread,
Jan 30, 2013, 1:39:12 PM1/30/13
to cloju...@googlegroups.com
Hi,
I have some (println "Test") in my core.clj and see them being executed  
in the compileClojure task. I am just wondering why  clojuresque needs to actually execute code in the compile task?

For me it would be just fine if clojuresque would just collect all dependencies and produce a jar containing all my clj files.....

Many Greetings
John

Meikel Brandmeyer

unread,
Jan 31, 2013, 1:55:24 AM1/31/13
to cloju...@googlegroups.com
Hi,
There are two cases: AOT and non-AOT. For AOT compilation you obviously have to compile the code. But what to do for non-AOT? I opted for at least requiring the namespaces. This helps to catch at least some compile time issues. At the stupid side of the spectrum this can be just a typo in a function name. But on the other hand there could be just as well be some pretty sophisticated compile time checks eg. in macros or the upcoming core.typed library done by Ambrose Bonnaire-Sergeant.

Meikel
 

john

unread,
Jan 31, 2013, 4:02:15 AM1/31/13
to cloju...@googlegroups.com
Hi Meikel,
thank you again for your reply.
I see and when I start to write tests I'll need my clojure code compiled anyway!
many Greetings
John
Reply all
Reply to author
Forward
0 new messages