On Wed, 8 Sep 2010 11:26:38 -0700 (PDT)
Sean <stanleyzhang2...@gmail.com> wrote:
> Hi,
> 
> I'm new to Clojure. This is also my first time posting here.
> When I use REPL and print something out, I always get a nil printed.
> For example, (print "Clojure"), I got: clojurenil. Where does the nil
> come from?

REPL stands for "Read Eval Print Loop". It reads an expression,
evaluates it, then prints that value. The value of (print "Clojure")
is nil, and that's what the REPL prints. Try these two:

(do (print "Clojure") 1)

(identity "Clojure")

and compare the results.

    <mike
-- 
Mike Meyer <m...@mired.org>             http://www.mired.org/consulting.html
Independent Network/Unix/Perforce consultant, email for more information.

O< ascii ribbon campaign - stop html mail - www.asciiribbon.org

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Reply via email to