News for hackers. Stuff that matters.
Re:A tool for thought by n72 on Saturday June 04, 2016 @07:26AM (#11835932)
I hate to harp on this issue, but I tried Clojure for about a year on and off. I just couldn't get over the really crappy stack traces. I would break something and then spend 10 minutes tracking down whatever I broke. I'm happy with Kotlin for the moment, but would love to get back into Clojure if only it would get sane error messages.
Re:A tool for thought by hkjgkjy on Saturday June 04, 2016 @10:00AM (#11836340)
I used to think so when I was new to Clojure. Then I realized that the stack traces just show you the call stack - nothing more, nothing less. I realized the thing that put me off was seeing Java stuff in the stack trace.

But this is the beautiful thing of Clojures hosted nature. Clojure is just a library, that can be dropped into a project. Thinking about it like that made me appreciate the traces.

Re:A tool for thought by cle on Saturday June 04, 2016 @06:41PM (#11838519)
Clojure is designed to be a practical language. Part of that is interop with the host VM (JVM in Clojure's case). The "crappy" stack traces are definitely NOT crappy when you're using Clojure in a complex JVM ecosystem. The raw-ness and simplicity of it is actually refreshing. The Clojure Java source is remarkably simple, and it doesn't take much time to get used to and appreciate the Java stack traces when writing non-trivial Clojure code in a Java world.
Re:A tool for thought by n72 on Sunday June 05, 2016 @06:53AM (#11840391)
I just don't see how it's remarkably simple. In other langs with good stack traces I get exactly the error at exactly the line on which it occurred. In Clojure, I quite simply don't. I do absolutely love the rest of Clojure. I also realize there are tradeoffs to being hosted. Nevertheless, to deny that the fact that the stack traces aren't ideal seems a bit of a stretch.
Re:A tool for thought by cle on Sunday June 05, 2016 @10:59AM (#11841283)
I'm not claiming they're "ideal", which is a really loaded word. Just that they're practical, and in my opinion they make the right tradeoffs.
Re:A tool for thought by Myk267 on Saturday June 04, 2016 @01:30PM (#11837096)
You're at least not alone.

I used Clojure for a while and we didn't get along despite my attraction to the language, and the hype, I guess. Clojure makes a lot of trade offs to run how it does and where it does and those choices don't necessarily add up to the experience I, or others who seem to crop up here, prefer.

While I haven't tried Kotlin, I'm aware of it and know that it isn't all that different from Scala, which is a bit more my style.

Re:A tool for thought by hashkb on Saturday June 04, 2016 @09:34AM (#11836255)
It's that "on and off" that killed you. Dig in, practice, get better, and it will become much less of a problem. Set your goal "I will get better at debugging" and not "I will immediately be a pro".
Re:A tool for thought by agumonkey on Saturday June 04, 2016 @10:25AM (#11836438)
Emacs cider repl added stacktrace filters that make you feel calm when something pops. I never did anything fancy but compared to vanilla stacktraces it's a great step.
Re:A tool for thought by conaws on Saturday June 04, 2016 @07:22PM (#11838712)
Solving that is what this post is about