Skip to content

Instantly share code, notes, and snippets.

@mcandre
Created March 5, 2013 15:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mcandre/5091006 to your computer and use it in GitHub Desktop.
Save mcandre/5091006 to your computer and use it in GitHub Desktop.

Trace:

C:\Documents and Settings\apenneba\Desktop>type hello.clj
(ns hello
(:gen-class))

(defn -main [& args]
  (println "Hello World!"))

C:\Documents and Settings\apenneba\Desktop>clj
Clojure 1.2.0
user=> (load "hello")
nil
user=> (hello/-main [])
Hello World!
nil
user=> (System/exit 0)

C:\Documents and Settings\apenneba\Desktop>clj hello.clj

C:\Documents and Settings\apenneba\Desktop>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment