4 ms·
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 h
by yogthos 7y ago
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.
- lispm 7y ago> 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.
- pixelperfect 7y agoThat isn't a contradiction - the advantages of a REPL are greater for Clojure than for Lisp.
- lispm 7y agoFrom what I see that seems not to be the case. Reloading code in REPLs in Lisp is widely used.