It's very handy to be able to type in a symbol at the REPL and see its value.
On Sun, Nov 30, 2008 at 10:15 AM, Mark Volkmann <[EMAIL PROTECTED]> wrote: > > On Sun, Nov 30, 2008 at 10:35 AM, Paul Barry <[EMAIL PROTECTED]> wrote: >> >> It's a minor thing, but wouldn't it be a good idea to put (defn quit >> [] (System/exit 0)) in clojure core, just to make quitting out of the >> REPL more obvious? Ctrl-C and Ctrl-D work too, and are actually >> shorter to type, but having a quit function seems to be an idiomatic >> way of getting out of the interactive shell. That's the way to do it >> in Ruby, Python, Groovy, Scheme and Common Lisp, with the exceptions >> being Erlang is halt() and Scala is :q. > > +1 > > Related to this is the idea that maybe the REPL should automatically > wrap a line without parens with them. That way you could just enter > "quit" instead of "(quit)". That seems handy for many things. For > example, why not enter > > println "my-var is" my-var > > instead of > > (println "my-var is" my-var) > > It's entirely possibly I'm overlooking some reason why this is a bad idea. > > -- > R. Mark Volkmann > Object Computing, Inc. > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/clojure?hl=en -~----------~----~----~----~------~----~------~--~---