Thanks a lot. Somehow I believed firmly (str nil) will be "nil" and didn't even try it out ?!
On Thursday, January 3, 2013 11:47:15 PM UTC, Ben wrote: > > the type of nil is nil, and (str nil) is empty. > > On Thu, Jan 3, 2013 at 3:45 PM, Steven Obua <ste...@obua.de <javascript:>> > 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 clo...@googlegroups.com<javascript:> > > Note that posts from new members are moderated - please be patient with > your > > first post. > > To unsubscribe from this group, send email to > > clojure+u...@googlegroups.com <javascript:> > > 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 clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en