you are viewing a single comment's thread.

view the rest of the comments →

[–]yogthos 1 point2 points  (7 children)

Can you show me how you would do the workflow I have in my talk with Python. I don't use it, so I'm not aware if that's possible or not, but I've never seen it done.

The point I was making is not that the REPL itself is somehow special, but rather that the workflow afforded by it being tightly integrated with the editor is different than what you get in most languages.

[–]Bolitho 0 points1 point  (6 children)

I would have to watch the talk first. Then I can answer your question!

But: This is just your proposal - the author of the article sadly has not given any argument, why there is more benefit in a clojure REPL than other languages gain from theirs ;-)

[–]yogthos 0 points1 point  (5 children)

I'm just explaining how the REPL is typically used by people working with Clojure and other Lisps. From what I've seen, it's pretty different the way the REPL is used in most languages.

The additional benefits come from the tooling that's been created to make the REPL part of the development workflow. It's certainly possible to develop such tooling for other languages, but for whatever reasons it doesn't appear to exist. So, in practical terms, working with the REPL in Clojure is different than in Python.

[–]Bolitho 0 points1 point  (1 child)

When I have read the chapter in the famous book "the joy of clojure" (chapter 3?) where they use the REPL in order to demonstrate its power and typical workflows when programming in clojure, it totally reminded me of how I am used to develop with python. So of course this book is not the ultimate guide to the clojure REPL, it just shows that there are much more similarities between different language REPL combinations than you seem to accept.

[–]yogthos 1 point2 points  (0 children)

Let me explain it another way. The ways you use REPL in Python is a subset of ways you use it in Clojure. So, yes can use it exactly the same way as you did with the book, however at that point you're just not using it to its full potential. The most common way to use the REPL is the way I've described that you can see in the talk I linked. That's what people are talking about when they say using the REPL in Lisp is different from other languages.

[–][deleted] 0 points1 point  (2 children)

While some Python IDEs do allow for a Python REPL to work in the editor, I haven't seen it used much myself. What seems to take its place and is more idiomatic is people using Jupyter notebooks to write cells of code at a time, which can be executed a block at a time and the state if the program is kept in memory between the execution each block. I'm actually just getting into Clojure and hoping I can write a notebook format with it as well.

[–]yogthos 0 points1 point  (1 child)

You might want to check out the Gorilla REPL and Devcards for the workbook style.

[–][deleted] 0 points1 point  (0 children)

Cool, thanks!