clojurescript-site
clojurescript-site copied to clipboard
Quick Start mentions stack trace which no longer appears
In Quick Start:
Let’s make a mistake. Try evaluating
(ffirst [1]). You should get a source mapped stack trace ...
But with recent changes stack traces are no longer printed by default:
ClojureScript 1.10.516
cljs.user=> (ffirst [1])
Execution error (Error) at (<cljs repl>:1).
1 is not ISeqable
Potential solution:
Change the language to read:
Let’s make a mistake. Try evaluating (ffirst [1]) followed by (pst).
The REPL experience at that point might look like
ClojureScript 1.10.516
cljs.user=> (ffirst [1])
Execution error (Error) at (<cljs repl>:1).
1 is not ISeqable
cljs.user=> (pst)
Error: 1 is not ISeqable
cljs.core/seq (out/cljs/core.cljs:1226:20)
cljs.core/first (out/cljs/core.cljs:1235:16)
cljs$core$ffirst (out/cljs/core.cljs:1751:4)
Sounds good to me, PR welcome!