Re: Execution Model

2016-08-11 Thread 'John White' via Clojure
Thanks Zach, you've helped me realize I don't ever have to compile my .clj script, but can just load it instead. I gather the performance will be the same as for AOT compilation. Cheers On Thursday, August 11, 2016 at 3:25:21 PM UTC+1, Zach Oakes wrote: > > Not sure there is any direct way to c

Re: Execution Model

2016-08-11 Thread Zach Oakes
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/@bend

Execution Model

2016-08-11 Thread 'John White' via Clojure
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 me