5 ms·
Ok, I'm totally a noob with Clojure, but I thought all I had to do was java -jar ~/clojure.jar and I got a REPL. Did something change recently? This seems like
by bphogan 16y ago
Ok, I'm totally a noob with Clojure, but I thought all I had to do was java -jar ~/clojure.jar and I got a REPL. Did something change recently? This seems like an awful lot more work than it should be.
- acangiano 16y agojava -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.
- briancarper 16y agoYou 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.
- acangiano 16y ago> You can always exit via (System/exit 0), 0 being the return code. That's how I implement the exit function in the article.