Not sure there is any direct way to change that behavior but want to look into Boot scripts if you want to write small scripts without dealing with a main method. Here's a cool demonstration of writing a Boot script that starts a web server at the top level of the file:
https://medium.com/@bendyorke/0-to-clojure-in-less-than-10-lines-of-code-789bbbbb360f On Thursday, August 11, 2016 at 8:46:32 AM UTC-4, John White wrote: > > Hello, > > Does anyone know how to make Clojure behave more like ClojureScript when > compiling? > > That is, I don't want the top level forms evaluated - just analyzed and > compiled, so I can write a script of top level forms that won't run when I > compile the clj? > > Thanks, > John > -- 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 --- You received this message because you are subscribed to the Google Groups "Clojure" group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.