Re:Clojure MCP
by worldsayshi on Tuesday May 27, 2025 @10:58AM
(#44107617)
I like that. So you're saying that the switch between REPL and writing a test is much more seamless in a clojure system. That makes a lot of sense to me.
[ Parent
| on HN ]
Re:Clojure MCP
by dandelion9 on Tuesday May 27, 2025 @11:45AM
(#44108052)
At a basic level any Lisp-like with an editor integrated REPL lets you put your cursor over the `greet` invocation below and evaluate it, and have the results shown in the manner of your choice (IDE window, inline temporary comment, etc).
This is all in the file as saved to your version control:
(defn greet [name]
(-> (str "Hello, " name "!")
println))
(comment
(greet "worldsayshi"))
It's 90% of the way to being a test already, just from the typical workflow.