Nice case of clojure reductio :-)
On Mon, Apr 6, 2009 at 7:51 AM, Stephen C. Gilardi wrote:
> (str *ns*)
>
> On Apr 6, 2009, at 1:27 AM, Kevin Downey wrote:
>
>> (.toString *ns*)
>>
>> On Sun, Apr 5, 2009 at 12:39 PM, Stephen C. Gilardi
>> wrote:
>>>
>>>
>>> (-> *ns* ns-name name)
>
--~-
(str *ns*)
On Apr 6, 2009, at 1:27 AM, Kevin Downey wrote:
(.toString *ns*)
On Sun, Apr 5, 2009 at 12:39 PM, Stephen C. Gilardi
wrote:
(-> *ns* ns-name name)
smime.p7s
Description: S/MIME cryptographic signature
(.toString *ns*)
On Sun, Apr 5, 2009 at 12:39 PM, Stephen C. Gilardi wrote:
>
> On Apr 5, 2009, at 3:23 PM, dysinger wrote:
>
>> I need coffee - too many typos. I meant to say "I am trying to avoid
>> _typing_ 'x.y.z' twice"
>>
>> (str (the-ns 'user)) is is even more human-error prone than just
On Apr 5, 2009, at 3:23 PM, dysinger wrote:
I need coffee - too many typos. I meant to say "I am trying to avoid
_typing_ 'x.y.z' twice"
(str (the-ns 'user)) is is even more human-error prone than just
typing "user".
I was look for a way to introspect ns (DRY up the Logger/getLogger
call).
I need coffee - too many typos. I meant to say "I am trying to avoid
_typing_ 'x.y.z' twice"
(str (the-ns 'user)) is is even more human-error prone than just
typing "user".
I was look for a way to introspect ns (DRY up the Logger/getLogger
call). In java you could just Logger.getLogger(this.ge
I am trying to avoid tying "x.y.z" twice it the above code.
On Apr 5, 8:49 am, "Stephen C. Gilardi" wrote:
> Is this what you're looking for:
>
> user=> (doc the-ns)
> -
> clojure.core/the-ns
> ([x])
> If passed a namespace, retur
Is this what you're looking for:
user=> (doc the-ns)
-
clojure.core/the-ns
([x])
If passed a namespace, returns it. Else, when passed a symbol,
returns the namespace named by it, throwing an exception if not
fou
How can I introspect namespaces? I can once I have some definitions
going it seems but not before (I am noob). See below example:
(ns x.y.z
(import '(java.util.logging Logger)))
(def log (Logger/getLogger "x.y.z")) ;; <-- how-to introspect this
ns ?
(.addHandler log (FileHandler. (format "/va