We are trying to raise the prominence of the "phase" and that mental model about what stage of computation is occurring. We may reevaluate after trying it out.
That said, the way those are printed is actually an artifact of the repl printing strategy and you can customize it if you really want to! Making REPL customization easier with clj is another thing I'm hoping to have time to work on in 1.10.
Right, I can see how it could help beginners, being aware of the different phases is definitly a step on anyone's learning process of Clojure, and can help to debug and understand problems for sure. So the quicker you are aware of them and understand them the better.
It's a small nitpick in my case, since I'm already aware and familiar with all these errors, my eyes want to go directly to the cause. I'll be very happy either way.
Thanks again for all the awesome work, the core team is truly amazing. Those errors actually look a lot better then I thought they would when I first heard the proposed changes.
13
u/didibus Aug 11 '18
Looks awesome. My only feeling is, I think I'd prefer the cause to be first?
Like Divide by zero. Evaluation error at bla bla.
Instead of: Evaluation error at bla bla. Divide by zero.
Or: Cond requires an even number of form. Syntax error macroexpending cond at (3:1).
I feel the cause is what helps me most fix the issue, and so seeing it first seems better to me.