Welcome! Please see the About page for a little more info on how this works.

0 votes
in Clojure by

Hello friends! I'm total newbie and now trying to study technology of REPL.

With forms like (class 1) or (class true) all is correct, but after (class ;) things go wrong.
Usual prompt user=> become #_=> and other forms now ignored. Why??

Debian / Clojure 1.10.3 / nREPL 0.8.3
Thanks!

1 Answer

0 votes
by

The character ; denotes the start of a comment in Clojure which will run to the next newline. So by typing (class ;) your starting a call to the function class but the closing paren is commented out. Therefore, if you type more and hit enter the REPL will think that everything is an argument to the function call and expect more input until a closing paren is eventually encountered.

by
Thank you!  :-)
...