tags:

views:

128

answers:

2

Such as:

(println clojure-version)

?

+12  A: 

Very close.

user> (println *clojure-version*)
{:major 1, :minor 2, :incremental 0, :qualifier }
nil

Most builtin "global" variables like this have Common Lisp-style asterisk "earmuffs".

Brian Carper
Yeah that's it. Thanks.
qrest
You can also just type *clojure-version* and the REPL will print the toString value. Fancy, that!
Isaac Hodes
+12  A: 

Even shorter :

user> (clojure-version)
"1.2.0-beta1"
user> 

Oops, I have to upgrade...

Peter Tillemans