why after every expression is executed,nil is printed

2010-07-30 Thread vishy
Hi, in REPL when I try out various expressions,nil is printed.why so? -- 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

Re: why after every expression is executed,nil is printed

2010-07-30 Thread Laurent PETIT
Probably because you're not evaluating 'expressions' (whose return value is important) but rather 'statements' (who are all about side effects, and whose return value is generally nil). For example, println is a 'statement' = side effect of writing to *out*, return value is nil. Another example: