Re: clojure/ns and gen-and-save-class

2008-09-09 Thread Rich Hickey
On Sep 7, 10:23 am, "Stephen C. Gilardi" <[EMAIL PROTECTED]> wrote: > On Sep 3, 2008, at 7:11 PM, Rich Hickey wrote: > > > > >>> On the subject of shorter, the name "clojure/load" is already in > >>> use, but > >>> would be a better name for "load-resources" than "load-resources". > >>> I think

Re: clojure/ns and gen-and-save-class

2008-09-07 Thread Stephen C. Gilardi
On Sep 3, 2008, at 7:11 PM, Rich Hickey wrote: >>> On the subject of shorter, the name "clojure/load" is already in >>> use, but >>> would be a better name for "load-resources" than "load-resources". >>> I think >>> we should consider changing the name of the former to something >>> else li

Re: clojure/ns and gen-and-save-class

2008-09-06 Thread Chouser
On Sat, Sep 6, 2008 at 6:48 PM, Rich Hickey <[EMAIL PROTECTED]> wrote: > > I've applied this patch (SVN rev 1017). > > ns should be used in only one file. in-ns should still be used in > subsidiary files and to change *ns* at the repl. Also you mentioned in IRC (but not here I think) that ns and

Re: clojure/ns and gen-and-save-class

2008-09-06 Thread Rich Hickey
On Sep 6, 7:27 pm, "Stephen C. Gilardi" <[EMAIL PROTECTED]> wrote: > On Sep 6, 2008, at 6:48 PM, Rich Hickey wrote: > > > > > On Sep 3, 5:14 pm, Chouser <[EMAIL PROTECTED]> wrote: > >> On Wed, Sep 3, 2008 at 4:36 PM, Stephen C. Gilardi > >> <[EMAIL PROTECTED]> wrote: > >>> I saw some discussion

Re: clojure/ns and gen-and-save-class

2008-09-06 Thread Stephen C. Gilardi
On Sep 6, 2008, at 6:48 PM, Rich Hickey wrote: > On Sep 3, 5:14 pm, Chouser <[EMAIL PROTECTED]> wrote: >> On Wed, Sep 3, 2008 at 4:36 PM, Stephen C. Gilardi >> <[EMAIL PROTECTED]> wrote: >>> I saw some discussion of how to fix this on the IRC log but I >>> can't get on >>> at the moment. >>> It

Re: clojure/ns and gen-and-save-class

2008-09-06 Thread Rich Hickey
On Sep 3, 5:14 pm, Chouser <[EMAIL PROTECTED]> wrote: > On Wed, Sep 3, 2008 at 4:36 PM, Stephen C. Gilardi <[EMAIL PROTECTED]> wrote: > > > I saw some discussion of how to fix this on the IRC log but I can't get on > > at the moment. > > It looks like the current plan is to change "ns" to remove

Re: clojure/ns and gen-and-save-class

2008-09-05 Thread Parth Malwankar
On Sep 6, 12:23 am, Rich Hickey <[EMAIL PROTECTED]> wrote: > On Sep 5, 7:06 am, Christopher Taylor <[EMAIL PROTECTED]> wrote: > > > > > Hi, > > > this is my first post to the list (though I've been lurking for a > > while) and I'm not yet actively working with Clojure, so take what I > > say her

Re: clojure/ns and gen-and-save-class

2008-09-05 Thread Stephen C. Gilardi
On Sep 5, 2008, at 10:08 PM, Stuart Sierra wrote: > On Sep 5, 2008, at 3:23 PM, Rich Hickey wrote: >> I didn't think about the plural angle - anyone else bothered by that? >> The alternative is defnamespace. > > Erg. Here, I think shorter is better. Maybe it's only once per file, > but you stil

Re: clojure/ns and gen-and-save-class

2008-09-05 Thread Stuart Sierra
On Sep 5, 2008, at 3:23 PM, Rich Hickey wrote: > I didn't think about the plural angle - anyone else bothered by that? > The alternative is defnamespace. Erg. Here, I think shorter is better. Maybe it's only once per file, but you still have to type it every time you start a new file. If peopl

Re: clojure/ns and gen-and-save-class

2008-09-05 Thread Stephen C. Gilardi
On Sep 5, 2008, at 3:23 PM, Rich Hickey wrote: > I didn't think about the plural angle - anyone else bothered by that? > The alternative is defnamespace. I like the clarity of defnamespace over defns. The only knock I see against defnamespace is its length (in characters). I think that lengt

Re: clojure/ns and gen-and-save-class

2008-09-05 Thread Rich Hickey
On Sep 5, 7:06 am, Christopher Taylor <[EMAIL PROTECTED]> wrote: > Hi, > > this is my first post to the list (though I've been lurking for a > while) and I'm not yet actively working with Clojure, so take what I > say here with a grain of salt :). > > On Sep 4, 2008, at 3:28 PM, Rich Hickey wrot

Re: clojure/ns and gen-and-save-class

2008-09-05 Thread Christopher Taylor
Hi, this is my first post to the list (though I've been lurking for a while) and I'm not yet actively working with Clojure, so take what I say here with a grain of salt :). On Sep 4, 2008, at 3:28 PM, Rich Hickey wrote: > On Sep 3, 7:51 pm, Rich Hickey <[EMAIL PROTECTED]> wrote: >> On Sep 3,

Re: clojure/ns and gen-and-save-class

2008-09-04 Thread Stephen C. Gilardi
On Sep 4, 2008, at 9:28 AM, Rich Hickey wrote: > After sleeping on it, I think what we have been calling ns should be > called defns instead, and ns should just set *ns*. Thus there should > be only one defns for any particular namespace, and (ns foo) can be > used to set the namespace for a file

Re: clojure/ns and gen-and-save-class

2008-09-04 Thread Rich Hickey
On Sep 4, 9:46 am, Chouser <[EMAIL PROTECTED]> wrote: > On Thu, Sep 4, 2008 at 9:28 AM, Rich Hickey <[EMAIL PROTECTED]> wrote: > > > After sleeping on it, I think what we have been calling ns should be > > called defns instead, and ns should just set *ns*. Thus there should > > be only one defns

Re: clojure/ns and gen-and-save-class

2008-09-04 Thread Chouser
On Thu, Sep 4, 2008 at 9:28 AM, Rich Hickey <[EMAIL PROTECTED]> wrote: > > After sleeping on it, I think what we have been calling ns should be > called defns instead, and ns should just set *ns*. Thus there should > be only one defns for any particular namespace, and (ns foo) can be > used to set

Re: clojure/ns and gen-and-save-class

2008-09-04 Thread Rich Hickey
On Sep 3, 7:51 pm, Rich Hickey <[EMAIL PROTECTED]> wrote: > On Sep 3, 5:14 pm, Chouser <[EMAIL PROTECTED]> wrote: > > > On Wed, Sep 3, 2008 at 4:36 PM, Stephen C. Gilardi <[EMAIL PROTECTED]> > > wrote: > > > > I saw some discussion of how to fix this on the IRC log but I can't get on > > > at t

Re: clojure/ns and gen-and-save-class

2008-09-03 Thread Rich Hickey
On Sep 3, 5:14 pm, Chouser <[EMAIL PROTECTED]> wrote: > On Wed, Sep 3, 2008 at 4:36 PM, Stephen C. Gilardi <[EMAIL PROTECTED]> wrote: > > > I saw some discussion of how to fix this on the IRC log but I can't get on > > at the moment. > > It looks like the current plan is to change "ns" to remove

Re: clojure/ns and gen-and-save-class

2008-09-03 Thread Matt Revelle
On Sep 3, 2008, at 4:59 PM, Chouser wrote: > > On Wed, Sep 3, 2008 at 4:36 PM, Stephen C. Gilardi > <[EMAIL PROTECTED]> wrote: >> I have been thinking recently that "(:refer ...)" would make a good >> supported reference argument. Instead of "(:refer-clojure ...)", I >> suggest >> "(:refer .

Re: clojure/ns and gen-and-save-class

2008-09-03 Thread Rich Hickey
On Sep 3, 6:09 pm, "Michael Reid" <[EMAIL PROTECTED]> wrote: > Hi, > > > Good point. It seems that :use would suffice except if both of the following > > are true for a particular namespace: > > - it's defined outside of a lib, > > - it's reasonable to want to refer to it. > > > I'm not aware of

Re: clojure/ns and gen-and-save-class

2008-09-03 Thread Rich Hickey
On Sep 3, 4:59 pm, Chouser <[EMAIL PROTECTED]> wrote: > On Wed, Sep 3, 2008 at 4:36 PM, Stephen C. Gilardi <[EMAIL PROTECTED]> wrote: > > > I have been thinking recently that "(:refer ...)" would make a good > > supported reference argument. Instead of "(:refer-clojure ...)", I suggest > > "(:re

Re: clojure/ns and gen-and-save-class

2008-09-03 Thread Michael Reid
Hi, > Good point. It seems that :use would suffice except if both of the following > are true for a particular namespace: > - it's defined outside of a lib, > - it's reasonable to want to refer to it. > > I'm not aware of any uses of namespaces that meet both of those criteria. > Does anyone else

Re: clojure/ns and gen-and-save-class

2008-09-03 Thread Stephen C. Gilardi
On Sep 3, 2008, at 4:59 PM, Chouser wrote: > On Wed, Sep 3, 2008 at 4:36 PM, Stephen C. Gilardi > <[EMAIL PROTECTED]> wrote: >> >> :refer (when you know another namespace is already present and you >> want to >> bring some or all of it into this namespace with filters) > > Is there any reason

Re: clojure/ns and gen-and-save-class

2008-09-03 Thread Chouser
On Wed, Sep 3, 2008 at 4:36 PM, Stephen C. Gilardi <[EMAIL PROTECTED]> wrote: > I saw some discussion of how to fix this on the IRC log but I can't get on > at the moment. > It looks like the current plan is to change "ns" to remove the sensitivity > to "the namespace is already defined" and add "(

Re: clojure/ns and gen-and-save-class

2008-09-03 Thread Chouser
On Wed, Sep 3, 2008 at 4:36 PM, Stephen C. Gilardi <[EMAIL PROTECTED]> wrote: > I have been thinking recently that "(:refer ...)" would make a good > supported reference argument. Instead of "(:refer-clojure ...)", I suggest > "(:refer ...)" which acts like any other call to refer but doesn't requ

Re: clojure/ns and gen-and-save-class

2008-09-03 Thread Stephen C. Gilardi
ect of shorter, the name "clojure/load" is already in use, but would be a better name for "load-resources" than "load-resources". I think we should consider changing the name of the former to something else like "load-reader" and using "load"

clojure/ns and gen-and-save-class

2008-09-02 Thread Stuart Sierra
I think there's a problem with the new clojure/ns and gen-and-save- class. Suppose you define: (clojure/ns com.example (:use clojure.contrib.pred)) (defn MyClass-close [this] (println "Hello, World!")) And you generate a .class file with: (gen