Re: History Question

2010-05-07 Thread Stuart Halloway
Avoid breaking people working in the edge. Things will be deprecated and removed over time. On May 6, 10:46 pm, MarkSwanson wrote: or as-str from c.c.java-utils (I think) Good one. It's in string.clj in the latest git. It looks like identical code for as-str is in both java_utils.clj and

Re: History Question

2010-05-07 Thread Mark Hamstra
On May 6, 10:46 pm, MarkSwanson wrote: > > or as-str from c.c.java-utils (I think) > > Good one. It's in string.clj in the latest git. It looks like identical code for as-str is in both java_utils.clj and string.clj Is there a good reason for this duplication? -- You received this message beca

Re: History Question

2010-05-07 Thread Heinz N. Gies
usualy pr and pr-str is for that, since str/print does not guarantee you that you can read the stuff back, think of str'ing a str, it looses it's ". On May 6, 2010, at 23:49 , Razvan wrote: > I think it returns :a rather than just a so that you can print stuff, then > read it back in and it woul

Re: History Question

2010-05-07 Thread Razvan
I think it returns :a rather than just a so that you can print stuff, then read it back in and it would be the same. You can use it to dump configuration data to a file for example then load it later easily. Razvan On Thu, May 6, 2010 at 10:21 PM, Meikel Brandmeyer wrote: > Hi, > > or as-str fr

Re: History Question

2010-05-06 Thread MarkSwanson
> or as-str from c.c.java-utils (I think) Good one. It's in string.clj in the latest git. I've needed this before too. There is so much good stuff in contrib. I think I have to allocate 30 minutes every day and just try to commit c.c. to memory. -- You received this message because you are subs

Re: History Question

2010-05-06 Thread MarkSwanson
On May 6, 2:44 pm, Sean Devlin wrote: > Okay, next guy to mention name gets shot.  Nothing personal. > Ok, but have you considered using name? -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups

Re: History Question

2010-05-06 Thread Meikel Brandmeyer
Hi, or as-str from c.c.java-utils (I think) Sincerely Meikel -- 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

Re: History Question

2010-05-06 Thread Sean Devlin
Now that's a solution :) On May 6, 2:53 pm, "Heinz N. Gies" wrote: > okay another suggestion: > > (defn nstr [& ss] >       (apply str (map #(if (keyword? %) (n-word-function-i-dont-mention %) %) > s))) > > On May 6, 2010, at 21:44 , Sean Devlin wrote: > > > > > Okay, next guy to mention name ge

Re: History Question

2010-05-06 Thread Heinz N. Gies
okay another suggestion: (defn nstr [& ss] (apply str (map #(if (keyword? %) (n-word-function-i-dont-mention %) %) s))) On May 6, 2010, at 21:44 , Sean Devlin wrote: > Okay, next guy to mention name gets shot. Nothing personal. > > On May 6, 2:42 pm, Jeff Heon wrote: >> You could use

Re: History Question

2010-05-06 Thread Jeff Heon
Sorry, the others replies weren't there yet when I begun answering 8) On May 6, 2:44 pm, Sean Devlin wrote: > Okay, next guy to mention name gets shot.  Nothing personal. -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send em

Re: History Question

2010-05-06 Thread Sean Devlin
Okay, next guy to mention name gets shot. Nothing personal. On May 6, 2:42 pm, Jeff Heon wrote: > You could use name. > > (name :a) > ->"a" > > On May 6, 2:33 pm, Sean Devlin wrote: > > > Why does (str :a) return ":a" and not "a"?  I have to work around this > > a lot, and I'm just curios what

Re: History Question

2010-05-06 Thread Jeff Heon
You could use name. (name :a) ->"a" On May 6, 2:33 pm, Sean Devlin wrote: > Why does (str :a) return ":a" and not "a"?  I have to work around this > a lot, and I'm just curios what the reasoning to go this direction was. > > -- > You received this message because you are subscribed to the Google

Re: History Question

2010-05-06 Thread Heinz N. Gies
(name :a) gives you "a" :), and I think the reason is that str shows the type somewhat, just as (str '(1 2 3)) or (str [1 2 3]) Regards, Heinz On May 6, 2010, at 21:33 , Sean Devlin wrote: > Why does (str :a) return ":a" and not "a"? I have to work around this > a lot, and I'm just curios what

Re: History Question

2010-05-06 Thread Alan Dipert
Hi, On May 6, 2:33 pm, Sean Devlin wrote: > Why does (str :a) return ":a" and not "a"?  I have to work around this > a lot, and I'm just curios what the reasoning to go this direction was. str returns ":a" because (.toString :a) returns ":a". This is probably so things like (println :a) work as

History Question

2010-05-06 Thread Sean Devlin
Why does (str :a) return ":a" and not "a"? I have to work around this a lot, and I'm just curios what the reasoning to go this direction was. -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.co