the type of nil is nil, and (str nil) is empty.

On Thu, Jan 3, 2013 at 3:45 PM, Steven Obua <[email protected]> wrote:
> Hi,
>
> I am using Clojure 1.4.0, and am trying to debug some buggy(?) code I have.
>
> In particular, I am trying to print information about some computed result,
> like that:
>
> (let [result (btree/btree-indexed-find pool address address-count name)]
>       (let [_ (println (str "result class: '" (type result) "', result: "
> result))]
>         ....
>
> Now, the resulting line that gets printed is as follows:
>
> result class: '', result:
>
> How can this be? For which value will (str (type value)) be the empty
> string?
>
> Thanks,
>
> Steven
>
> --
> You received this message because you are subscribed to the Google
> Groups "Clojure" group.
> To post to this group, send email to [email protected]
> Note that posts from new members are moderated - please be patient with your
> first post.
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en



-- 
Ben Wolfson
"Human kind has used its intelligence to vary the flavour of drinks,
which may be sweet, aromatic, fermented or spirit-based. ... Family
and social life also offer numerous other occasions to consume drinks
for pleasure." [Larousse, "Drink" entry]

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to [email protected]
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Reply via email to