By the way, I'm glad you added this. I frequently write
(defn- string [x]
(if (keyword? x) (name x) (str x)))
at the top of a file, but I've never settled on a name. I've called
it string, keystr, name-str, and half a dozen others.
-other Stuart
On Apr 8, 8:13 pm, Stuart Halloway wrote:
Changed to as-str (r654).
Stu
>
> In Compojure, I called this str*, but I think I like as-str a little
> better.
>
> - James
>
> On Apr 5, 5:19 pm, Stuart Halloway wrote:
>> Never worry about the distinction between symbols, keywords, and
>> strings when working with Java APIs that know only st
On Apr 5, 2009, at 4:21 PM, Stuart Halloway wrote:
No -- the intended change was from multiple :use forms to one :use
form with multiple namespaces. Any indentation changes outside of that
were unintentional--let me know if I am violating conventions.
Thanks. I have a convention of indenting
> I noticed the indentation changed for the ns form with your changes
> to sql.clj sql/internal.clj . Is the indentation you used produced
> by some tool?
>
> --Steve
No -- the intended change was from multiple :use forms to one :use
form with multiple namespaces. Any indentation changes ou
On Apr 5, 2009, at 12:19 PM, Stuart Halloway wrote:
(2) This function is moved from Steve Gilardi's sql.internal contrib.
(Steve, I broke sql in r636 but I think I fixed it now. Are there
tests I can run?)
Nothing automated yet. I use clojure.contrib.sql.test and then (db-
write) (db-read) a
In Compojure, I called this str*, but I think I like as-str a little
better.
- James
On Apr 5, 5:19 pm, Stuart Halloway wrote:
> Never worry about the distinction between symbols, keywords, and
> strings when working with Java APIs that know only strings!
>
> (doc the-str)
> ---