Re: namespace function

2008-12-22 Thread Randall R Schulz
On Monday 22 December 2008 08:10, Rich Hickey wrote: > ... > > Clojure names have distinct namespace components so they can be used > to designate/find things in namespaces. Designate, yes. Find, no, if I understand what you're saying. There's no index / repository / collection / directory / ta

Re: namespace function

2008-12-22 Thread J. McConnell
On Mon, Dec 22, 2008 at 11:10 AM, Rich Hickey wrote: > > On Dec 22, 10:40 am, "Mark Volkmann" > wrote: >> On Mon, Dec 22, 2008 at 9:10 AM, Rich Hickey wrote: >> >> > On Dec 22, 8:55 am, "Mark Volkmann" wrote: >> >> >> I thought that every symbol and keyword was in some namespace, >> >> default

Re: namespace function

2008-12-22 Thread Rich Hickey
On Dec 22, 10:40 am, "Mark Volkmann" wrote: > On Mon, Dec 22, 2008 at 9:10 AM, Rich Hickey wrote: > > > On Dec 22, 8:55 am, "Mark Volkmann" wrote: > > >> I thought that every symbol and keyword was in some namespace, > >> defaulting to the current namespace when the symbol or keyword is > >>

Re: namespace function

2008-12-22 Thread Mark Volkmann
On Mon, Dec 22, 2008 at 9:10 AM, Rich Hickey wrote: > > On Dec 22, 8:55 am, "Mark Volkmann" wrote: >> >> I thought that every symbol and keyword was in some namespace, >> defaulting to the current namespace when the symbol or keyword is >> defined. > > Symbols and keywords aren't 'in' namespaces

Re: namespace function

2008-12-22 Thread Mark Volkmann
t; > user=> (str (:ns ^#'n)) > "user" > > > You could create a macro to do this: > > (defmacro var-namespace-name [v] `(str (:ns ^(var ~v > > user=> (var-namespace-name n) > "user" What are some valid uses of the namespace function? -- R

Re: namespace function

2008-12-22 Thread Rich Hickey
On Dec 22, 8:55 am, "Mark Volkmann" wrote: > On Sun, Dec 21, 2008 at 3:44 PM, Stephen C. Gilardi wrote: > > > > > > > On Dec 21, 2008, at 4:35 PM, Mark Volkmann wrote: > > > Why do I get an IncompatibleClassChangeError below? I'm using revision > > 1180. > > > (def my-map {:a 1 :b 2}) > > (na

Re: namespace function

2008-12-22 Thread Mark Volkmann
On Mon, Dec 22, 2008 at 8:08 AM, Randall R Schulz wrote: > > On Monday 22 December 2008 05:55, Mark Volkmann wrote: >> On Sun, Dec 21, 2008 at 3:44 PM, Stephen C. Gilardi wrote: >> > ... >> >> I thought that every symbol and keyword was in some namespace, >> defaulting to the current namespace wh

Re: namespace function

2008-12-22 Thread Randall R Schulz
On Monday 22 December 2008 05:55, Mark Volkmann wrote: > On Sun, Dec 21, 2008 at 3:44 PM, Stephen C. Gilardi wrote: > > ... > > I thought that every symbol and keyword was in some namespace, > defaulting to the current namespace when the symbol or keyword is > defined. Since the default namespace

Re: namespace function

2008-12-22 Thread Mark Volkmann
On Sun, Dec 21, 2008 at 3:44 PM, Stephen C. Gilardi wrote: > > On Dec 21, 2008, at 4:35 PM, Mark Volkmann wrote: > > Why do I get an IncompatibleClassChangeError below? I'm using revision > 1180. > > (def my-map {:a 1 :b 2}) > (namespace my-map) > java.lang.IncompatibleClassChangeError (NO_SOURC

Re: namespace function

2008-12-21 Thread Randall R Schulz
On Sunday 21 December 2008 13:35, Mark Volkmann wrote: > Why do I get an IncompatibleClassChangeError below? I'm using > revision 1180. > > (def my-map {:a 1 :b 2}) > (namespace my-map) > java.lang.IncompatibleClassChangeError (NO_SOURCE_FILE:0) I'm not sure about that specific error, though I'v

Re: namespace function

2008-12-21 Thread Stephen C. Gilardi
On Dec 21, 2008, at 4:35 PM, Mark Volkmann wrote: Why do I get an IncompatibleClassChangeError below? I'm using revision 1180. (def my-map {:a 1 :b 2}) (namespace my-map) java.lang.IncompatibleClassChangeError (NO_SOURCE_FILE:0) I got a more informative message, with the difference perhap

namespace function

2008-12-21 Thread Mark Volkmann
Why do I get an IncompatibleClassChangeError below? I'm using revision 1180. (def my-map {:a 1 :b 2}) (namespace my-map) java.lang.IncompatibleClassChangeError (NO_SOURCE_FILE:0) -- R. Mark Volkmann Object Computing, Inc. --~--~-~--~~~---~--~~ You received this