Sunday, December 11, 2011

Running Clojure

I ran across a(nother) article today about jumping into clojure. It was full of misconceptions and half truths, but if it gets people into running and playing with clojure that otherwise would not, then I guess I can overlook them.

One thing that I *always* see though, is how to run the REPL. It's always:

java -cp clojure-1.3.0.jar clojure.main

Which works just fine. What I don't understand is why no one seems to know this easier way:

java -jar clojure-1.3.0.jar

Which also works, and is shorter, and somewhat more idiomatic, IMO. It even works on, , Windows.

c:\clojure-1.3.0>java -jar clojure-1.3.0.jar
Clojure 1.3.0
user=> (+ 1 2)
3




0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home