Skip to content

Commit cb13b11

Browse files
author
dnolen
committed
add zero arity newline to match Clojure
1 parent 8f9d5e5 commit cb13b11

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

src/main/cljs/cljs/core.cljs

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8602,10 +8602,12 @@ reduces them without incurring seq initialization"
86028602
[objs opts]
86038603
(string-print (pr-str-with-opts objs opts)))
86048604

8605-
(defn newline [opts]
8606-
(string-print "\n")
8607-
(when (get opts :flush-on-newline)
8608-
(flush)))
8605+
(defn newline
8606+
([] (newline nil))
8607+
([opts]
8608+
(string-print "\n")
8609+
(when (get opts :flush-on-newline)
8610+
(flush))))
86098611

86108612
(defn pr-str
86118613
"pr to a string, returning it. Fundamental entrypoint to IPrintWithWriter."

0 commit comments

Comments
 (0)