News for hackers. Stuff that matters.
Re:REPL Debugging: No Stacktrace Required (2017) by yogthos on Monday March 09, 2020 @09:51AM (#22525296)
I think immutability plays a big role here as well. Clojure makes it natural to structure your code in a way where things can be reloaded individually without having to worry about global state. The REPL would be of much more limited use in a language where everything is coupled via shared mutable references.

This can also be seen with ClojureScript where hot loading works reliably out of the box, while all attempts at do hot loading in Js are flaky to the point of not being of much use.

Re:REPL Debugging: No Stacktrace Required (2017) by lispm on Monday March 09, 2020 @12:41PM (#22526811)
> The REPL would be of much more limited use in a language where everything is coupled via shared mutable references.

That would be surprising, since the REPL was developed for Lisp in the 60s, which actually works that way.

Re:REPL Debugging: No Stacktrace Required (2017) by pixelperfect on Monday March 09, 2020 @01:01PM (#22527045)
That isn't a contradiction - the advantages of a REPL are greater for Clojure than for Lisp.
Re:REPL Debugging: No Stacktrace Required (2017) by lispm on Monday March 09, 2020 @01:14PM (#22527189)
From what I see that seems not to be the case. Reloading code in REPLs in Lisp is widely used.