: 01 February 2010 22:55
To: Clojure
Subject: Re: How to Initiate Clojure Application
Ok, this seems to work...
(ns localhost.test)
(clojure.main/main (println "Hello!"))
I then assume I'd use the special form "do" to perform multiple
unrelated tasks, such as...
On Feb 1, 2:54 pm, Wardrop wrote:
> Ok, this seems to work...
>
> (ns localhost.test)
>
> (clojure.main/main (println "Hello!"))
>
> I then assume I'd use the special form "do" to perform multiple
> unrelated tasks, such as...
>
> (clojure.main/main
> (do
> (println "Hello!") (println "Che
Ok, this seems to work...
(ns localhost.test)
(clojure.main/main (println "Hello!"))
I then assume I'd use the special form "do" to perform multiple
unrelated tasks, such as...
(clojure.main/main
(do
(println "Hello!") (println "Cheeso!")))
At least I can now build and run a script.
On
> Is "-main" special in any way, or is this just a convention that some
> environments select? In the past I think I've used a manifest to
> specify the main entry point... is that really necessary or does -main
> map to the default main entry point regardless of build tool? Just
> curious really!
On Feb 1, 3:16 pm, Timothy Pratley wrote:
> On 1 February 2010 09:32, Wardrop wrote:
>
> > Could someone step me through the idea behind the -main function
> > (which I've also seen written as just "main" without the hyphen).
>
> Is "-main" special in any way, or is this just a convention that
On 1 February 2010 09:32, Wardrop wrote:
> Could someone step me through the idea behind the -main function
> (which I've also seen written as just "main" without the hyphen).
Is "-main" special in any way, or is this just a convention that some
environments select? In the past I think I've used
You can generate a Java class with a main method (as you have done),
or you can use clojure.main:
http://clojure.org/repl_and_main
On Jan 31, 2:32 pm, Wardrop wrote:
> I'm having trouble finding any resources on the net for telling me how
> to initiate a Clojure application. I'm currently using