I think this stackoverflow thread sums it up pretty well as behavior is observed via lein repl (and indirectly via vim-fireplace):
http://stackoverflow.com/questions/20437767/what-happens-to-second-println-statement-clojure-repl?noredirect=1#comment30532207_20437767
Thanks.
Okay so its look like REPL-y tries captures the result of the whole expression first as this prints nothing for 15 seconds
(map (fn [x] Thread/sleep 5000 (println "x") x) [1 2 3])
Should ideally stdout buffer be flushed if an exception occurs like on vanilla clojure repl? Or would this side effect confiict with the idea of printing the result of the expression
I think this stackoverflow thread sums it up pretty well as behavior is observed via lein repl (and indirectly via vim-fireplace):
http://stackoverflow.com/questions/20437767/what-happens-to-second-println-statement-clojure-repl?noredirect=1#comment30532207_20437767
Thanks.
Okay so its look like REPL-y tries captures the result of the whole expression first as this prints nothing for 15 seconds
(map (fn [x] Thread/sleep 5000 (println "x") x) [1 2 3])
Should ideally stdout buffer be flushed if an exception occurs like on vanilla clojure repl? Or would this side effect confiict with the idea of printing the result of the expression