When you type “hello, world” in Clojure REPL, why does it say 'nil'?

前端 未结 4 1681
南方客
南方客 2021-01-04 12:33

I typed this into Clojure REPL (using the enclojure Netbeans plugin):

user=> \"hello, world\"
\"hello, world\"
nil

What\'s the nil about

4条回答
  •  南方客
    南方客 (楼主)
    2021-01-04 13:11

    i think it's the return value of your expression. It's the case in ruby with puts method.

提交回复
热议问题