News for hackers. Stuff that matters.
Re:How to setup Clojure from scratch by acangiano on Tuesday July 13, 2010 @02:34PM (#1512307)
java -jar ~/clojure.jar will give you a REPL. It will be a less convenient REPL though. In particular:

* No history support. Try to use the arrow to go back to the previous instruction and you'll be greeted by ^[[A.

* No tab completion.

* No exit function.

* No startup file with your customizations.

* No clojure.contrib automatically in your classhpath.

* No simple way to automatically place a list of jars for a given project in the classpath by simply specifying them in a file.

java -jar ~/clojure.jar will do. But this, I believe, is nicer.

Re:How to setup Clojure from scratch by briancarper on Tuesday July 13, 2010 @07:04PM (#1513036)
You can always exit via (System/exit 0), 0 being the return code.

`java -cp clojure.jar clojure.main` is the preferred method of starting Clojure rather than using -jar, I think.

Re:How to setup Clojure from scratch by acangiano on Wednesday July 14, 2010 @12:02AM (#1513562)
> You can always exit via (System/exit 0), 0 being the return code.

That's how I implement the exit function in the article.