Re: why can't I set! stuff in user.clj?

2008-12-12 Thread Rich Hickey
On Thu, Dec 11, 2008 at 8:28 PM, Stephen C. Gilardi squee...@mac.com wrote: On Dec 11, 2008, at 7:24 PM, Rich Hickey wrote: I am interested in the issues you are trying to address, and thanks for volunteering! Excellent. You're welcome. I'd like to try to focus our efforts on release

Re: why can't I set! stuff in user.clj?

2008-12-12 Thread Stephen C. Gilardi
I think clojure.lang.Repl should translate its args to the new format and call clojure.main/-main: old: clojure.lang.Repl file1 file2 -- a b c new: clojure.main -i file1 -i file2 -r a b c Similarly for clojure.lang.Script: old: clojure.lang.Script file1 file2 file3 -- a b c new:

Re: why can't I set! stuff in user.clj?

2008-12-12 Thread Stephen C. Gilardi
On Dec 12, 2008, at 11:08 AM, Rich Hickey richhic...@gmail.com wrote: On Fri, Dec 12, 2008 at 11:03 AM, Stephen C. Gilardi squee...@mac.com wrote: I think clojure.lang.Repl should translate its args to the new format and call clojure.main/-main: old: clojure.lang.Repl file1 file2 -- a

Re: why can't I set! stuff in user.clj?

2008-12-11 Thread Rich Hickey
On Dec 10, 2008, at 1:50 PM, Stephen C. Gilardi wrote: On Dec 10, 2008, at 8:51 AM, Stuart Halloway wrote: Thanks for the info. Is this limitation of user.clj arbitrary, or motivated by some concern that the average Clojure user should know about? Is the a reason not to load the bindings

Re: why can't I set! stuff in user.clj?

2008-12-11 Thread Stephen C. Gilardi
On Dec 11, 2008, at 7:24 PM, Rich Hickey wrote: I am interested in the issues you are trying to address, and thanks for volunteering! Excellent. You're welcome. I'd like to try to focus our efforts on release 1.0. Sounds good. Towards that end, it would be nice if your repl code got

Re: why can't I set! stuff in user.clj?

2008-12-10 Thread Stuart Halloway
Hi Steve, Thanks for the info. Is this limitation of user.clj arbitrary, or motivated by some concern that the average Clojure user should know about? Is the a reason not to load the bindings first? Does user.clj (in current form) do more harm than good? Stuart user.clj is loaded

Re: why can't I set! stuff in user.clj?

2008-12-10 Thread Stephen C. Gilardi
On Dec 10, 2008, at 8:51 AM, Stuart Halloway wrote: Thanks for the info. Is this limitation of user.clj arbitrary, or motivated by some concern that the average Clojure user should know about? Is the a reason not to load the bindings first? Does user.clj (in current form) do more harm than

Re: why can't I set! stuff in user.clj?

2008-12-10 Thread Stephen C. Gilardi
On Dec 10, 2008, at 1:50 PM, Stephen C. Gilardi wrote: - I think init.clj and repl-init.clj would be good additions to what we have now. I'll be happy to write the code if it's welcome. Alternatively, we could make those hooks be functions that one can (optionally) define in user.clj. The

Re: why can't I set! stuff in user.clj?

2008-12-10 Thread J. McConnell
On Wed, Dec 10, 2008 at 2:08 PM, Stephen C. Gilardi [EMAIL PROTECTED] wrote: Alternatively, we could make those hooks be functions that one can (optionally) define in user.clj. The platform entry point would call them if they exist: (ns user) (defn init [] (set! *compile-path*

Re: why can't I set! stuff in user.clj?

2008-12-09 Thread Brian Doyle
Stuart, I have a ~/.cljrc file that has this stuff in there and in my bash (clj) script to start clojure I do: $JAVA -cp $CLOJURE_JARS clojure.lang.Repl ~/.cljrc On Tue, Dec 9, 2008 at 1:12 PM, Stuart Halloway [EMAIL PROTECTED]wrote: Why can't I call set! in user.clj? (And what is the

Re: why can't I set! stuff in user.clj?

2008-12-09 Thread Stephen C. Gilardi
user.clj is loaded before thread-local bindings are established. I see you're using Repl.java. You can see the call to pushThreadBindings there to see how it works. user.clj allows you to set up the user namespace, but not set! most vars. With the repl in clojure.main, you can include an

Re: why can't I set! stuff in user.clj?

2008-12-09 Thread Brian Doyle
Steve, Could you post your bash shell script that starts Clojure? I would like to see what you have concerning the new options that can be passed to the updated clojure.jar. Thanks. On Tue, Dec 9, 2008 at 1:59 PM, Stephen C. Gilardi [EMAIL PROTECTED] wrote: user.clj is loaded before

Re: why can't I set! stuff in user.clj?

2008-12-09 Thread Stephen C. Gilardi
On Dec 9, 2008, at 6:13 PM, Brian Doyle wrote: Could you post your bash shell script that starts Clojure? I would like to see what you have concerning the new options that can be passed to the updated clojure.jar. Thanks. Here it is: #!/bin/bash set -o errexit

Re: why can't I set! stuff in user.clj?

2008-12-09 Thread Stephen C. Gilardi
On Dec 9, 2008, at 6:13 PM, Brian Doyle wrote: Could you post your bash shell script that starts Clojure? I would like to see what you have concerning the new options that can be passed to the updated clojure.jar. Thanks. [Reposting with a change and a correction:

Re: why can't I set! stuff in user.clj?

2008-12-09 Thread Randall R Schulz
On Tuesday 09 December 2008 18:10, Randall R Schulz wrote: ... Since I love to share my BASH code (and I anxiously look forward to the day that I'm willing to share my Clojure code), I've attached my clojure-svn script. ... By the way, tab stops are set at 4-column intervals. I forgot to