Re: Ending or closing malformed line in REPL

2011-12-09 Thread Chas Emerick
On Dec 6, 2011, at 11:31 AM, jlhouchin wrote: This biggest issue I see in this context, is that the REPL is tied to the editor. Yes, I can detach the REPL, but it is still a part of the editor. I can't have the pdf of my book side by side with the REPL. As soon as I click on the REPL, the

Re: Ending or closing malformed line in REPL

2011-12-09 Thread jlhouchin
On 12/9/2011 1:34 PM, Chas Emerick wrote: On Dec 6, 2011, at 11:31 AM, jlhouchin wrote: This biggest issue I see in this context, is that the REPL is tied to the editor. Yes, I can detach the REPL, but it is still a part of the editor. I can't have the pdf of my book side by side with the

Re: Ending or closing malformed line in REPL

2011-12-06 Thread Stuart Sierra
The built-in Clojure REPL is bare-bones to minimize external dependencies. Maybe some day we can have alternate distributions with more full-featured REPLs. For now, it's easier to use a development environment: Emacs + inferior-lisp or SLIME, Counterclockwise + Eclipse, Clooj, LaClojure +

Re: Ending or closing malformed line in REPL

2011-12-06 Thread jlhouchin
On 12/6/2011 12:23 AM, Laurent PETIT wrote: 2011/12/6 jlhouchinjlhouc...@gmail.com: On 12/5/2011 7:19 PM, Stephen Compall wrote: On Mon, 2011-12-05 at 09:51 -0800, jlhouchin wrote: When I entered the closing and then closing paren. I was fine. You may also try backspace; unusually for a

Re: Ending or closing malformed line in REPL

2011-12-06 Thread jlhouchin
On Dec 6, 10:04 am, Stuart Sierra the.stuart.sie...@gmail.com wrote: The built-in Clojure REPL is bare-bones to minimize external dependencies. Maybe some day we can have alternate distributions with more full-featured REPLs. For now, it's easier to use a development environment: Emacs +

Re: Ending or closing malformed line in REPL

2011-12-06 Thread Laurent PETIT
2011/12/6 jlhouchin jlhouc...@gmail.com: On 12/6/2011 12:23 AM, Laurent PETIT wrote: 2011/12/6 jlhouchinjlhouc...@gmail.com: On 12/5/2011 7:19 PM, Stephen Compall wrote: On Mon, 2011-12-05 at 09:51 -0800, jlhouchin wrote: When I entered the closing and then closing paren. I was fine. You

Ending or closing malformed line in REPL

2011-12-05 Thread jlhouchin
Hello, While I am going through the Programming Clojure 2nd edition book, I am entering the code into a REPL. Sometimes when entering the code I enter a typo and hit enter and cannot get the REPL to close that malformed line. It often happens with an errant closing ] or ). Frequently this

Re: Ending or closing malformed line in REPL

2011-12-05 Thread jlhouchin
My apologies for the noise. I had entered (interleave (whole-numbers) [A B C] [) on the repl and hit enter. When I went back and tried again and looked and looked. The problem is the open string prior to what appears to be a closing paren. In this instance it isn't a closing paren but a part of

Re: Ending or closing malformed line in REPL

2011-12-05 Thread Stephen Compall
On Mon, 2011-12-05 at 09:51 -0800, jlhouchin wrote: When I entered the closing and then closing paren. I was fine. You may also try backspace; unusually for a REPL, that works. -- Stephen Compall ^aCollection allSatisfy: [:each|aCondition]: less is better -- You received this message

Re: Ending or closing malformed line in REPL

2011-12-05 Thread jlhouchin
On 12/5/2011 7:19 PM, Stephen Compall wrote: On Mon, 2011-12-05 at 09:51 -0800, jlhouchin wrote: When I entered the closing and then closing paren. I was fine. You may also try backspace; unusually for a REPL, that works. I tried that. But as I was on a new line after hitting the enter/

Re: Ending or closing malformed line in REPL

2011-12-05 Thread Laurent PETIT
2011/12/6 jlhouchin jlhouc...@gmail.com: On 12/5/2011 7:19 PM, Stephen Compall wrote: On Mon, 2011-12-05 at 09:51 -0800, jlhouchin wrote: When I entered the closing and then closing paren. I was fine. You may also try backspace; unusually for a REPL, that works. I tried that. But as I was

Re: Ending or closing malformed line in REPL

2011-12-05 Thread Laurent PETIT
2011/12/6 Laurent PETIT laurent.pe...@gmail.com: 2011/12/6 jlhouchin jlhouc...@gmail.com: On 12/5/2011 7:19 PM, Stephen Compall wrote: On Mon, 2011-12-05 at 09:51 -0800, jlhouchin wrote: When I entered the closing and then closing paren. I was fine. You may also try backspace; unusually

Re: Ending or closing malformed line in REPL

2011-12-05 Thread Petr Gladkikh
Clojure REPL in Counterclockwise (http://code.google.com/p/counterclockwise/) is pretty nice. And yes, allowing multi-line expressions and having no way to edit them is annoying. On Tue, Dec 6, 2011 at 11:45 AM, jlhouchin jlhouc...@gmail.com wrote: On 12/5/2011 7:19 PM, Stephen Compall wrote: