(defn promises [n]
(repeat n (js/Promise. (fn []))))
And while using jack-in to start a shadow-cljs repl...
Evaluating (promises 10) results in a result that is not pretty printed, but evaluating (cljs.pprint/pprint (promises 10)) results in a pretty printed result.
@PEZ Maybe we can use cljs.pprint/pprint when the repl type is cljs instead of clojure.core/pprint (if that is even what's being used in this case - I haven't looked yet)?
Not sure cljs.pprint is available as a function that can be used. If this happens in the nrepl server, which is running in Clojure. But we can try, of course.
With the following pprint settings:
And the following function defined in .cljs file:
And while using jack-in to start a shadow-cljs repl...
Evaluating
(promises 10)
results in a result that is not pretty printed, but evaluating(cljs.pprint/pprint (promises 10))
results in a pretty printed result.@PEZ Maybe we can use
cljs.pprint/pprint
when the repl type is cljs instead ofclojure.core/pprint
(if that is even what's being used in this case - I haven't looked yet)?