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

0 votes
in Printing by

Right now, newline accesses a private var named system-newline which is initialized from the Java system property line.separator. For portability reasons, it would be nice if Clojure made this variable public so that application code could easily access it. Is there any reason to keep it private?

1 Answer

+2 votes
by

If its made public, others flavors of clojure like clojurescript will need to implement this

Clojurescript in particular, when running in a browser, may be a bit wired implement it.

So, just access your host with (System/getProperty "line.separator") ;)

...