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
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
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
> >>
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
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
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
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
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
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
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
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
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
12 matches
Mail list logo