Re: "Star-Vars" for the repl to provide recent values, shorten error messages

2008-09-22 Thread Stuart Sierra
Thanks, Steve, Rich. This is useful. -Stuart On Sep 18, 8:36 pm, Rich Hickey <[EMAIL PROTECTED]> wrote: > On Sep 18, 6:02 pm, "Stephen C. Gilardi" <[EMAIL PROTECTED]> wrote: > > Thanks Rich, I've uploaded star-vars-2.patch to the file area of the > > Clojure group which implements these changes.

Re: "Star-Vars" for the repl to provide recent values, shorten error messages

2008-09-20 Thread Stephen C. Gilardi
On Sep 20, 2008, at 7:27 PM, Mike Hinchey wrote: > I added support for *1 *2 *3 in my fork of swank-clojure (for emacs/ > slime), http://github.com/mikehinchey/swank-clojure. I'm glad to see this support in swank-clojure. Thanks! > I did one thing different which is to not reset the vars if the

Re: "Star-Vars" for the repl to provide recent values, shorten error messages

2008-09-20 Thread Mike Hinchey
I added support for *1 *2 *3 in my fork of swank-clojure (for emacs/ slime), http://github.com/mikehinchey/swank-clojure. I did one thing different which is to not reset the vars if the eval is one of the vars themselves. Rich noted most CL repls don't do this, but it seems useful to me. Though

Re: "Star-Vars" for the repl to provide recent values, shorten error messages

2008-09-18 Thread Rich Hickey
On Sep 18, 6:02 pm, "Stephen C. Gilardi" <[EMAIL PROTECTED]> wrote: > On Sep 18, 2008, at 12:46 PM, Rich Hickey wrote: > > > Thanks Steve, > > > I'm willing to add this with a couple of changes: > > > You can def the vars in boot.clj, with no roots. Please provide doc > > strings. > > > Lose *r,

Re: "Star-Vars" for the repl to provide recent values, shorten error messages

2008-09-18 Thread Stephen C. Gilardi
On Sep 18, 2008, at 12:46 PM, Rich Hickey wrote: > Thanks Steve, > > I'm willing to add this with a couple of changes: > > You can def the vars in boot.clj, with no roots. Please provide doc > strings. > > Lose *r, it's not really useful > > In the Repl, push bindings for them (where ns is pushed

Re: "Star-Vars" for the repl to provide recent values, shorten error messages

2008-09-18 Thread Rich Hickey
On Sep 13, 1:59 pm, "Stephen C. Gilardi" <[EMAIL PROTECTED]> wrote: > On Sep 13, 2008, at 12:14 PM, Rich Hickey wrote: > > > I suggest using keywords for commands. They evaluate to themselves and > > there is no purpose to entering them at the repl otherwise (other than > > demonstrating that ke