os.Exit stops the process with a status code. Deferred work does not run, and expressions after the call do not run. Exit is immediate.
os.Exit
(println "goodbye") (os.Exit 3) (println "not printed")
The status is 3. echo $? prints it in a shell.
echo $?
$ glj exit.glj goodbye $ echo $? 3
Next example: Reader Conditionals.
A hands-on tour in the style of Go by Example. Glojure is a Clojure interpreter hosted on Go.