No keywordize

This isn't ready to commit yet, it's a hacked up monkey-patched approach with an evil `doall`.

Just wanted this up for others to validate the general approach. I need this functional (or an alternative, open to suggestions!) so that I can store a nested map of string-keys properly in a mongo table. Right now, the only places we do that do some trickery to get around `_` vs `-`, but that isn't quite good enough for urls, numbers, etc.
Yup, I'm going to properly thread this through as an argument to congomongo, rather than with-redefs monkey patch it.

Sent from my iPad

> On Aug 20, 2014, at 6:14 AM, Gordon Syme <notifications@github.com> wrote:
> 
> In src/mongofinil/core.clj:
> 
> > -        (throw-if-not (seq? results) "expected seq")
> > -        (map
> > -         (fn [result]
> > -           (if (map? result)
> > -             (do
> > -               (-> (for [[k v] result]
> > -                     (if (contains? keywords k) [k (keyword v)]
> > -                         [k v]))
> > -                   (#(into {} %))
> > -                   (with-meta (meta result))))
> > -             result))
> > -         results)))
> > -    f))
> > +  [f options]
> > +  (fn [& args]
> > +    (with-redefs [congo-coerce/mongo->clojure (fn [obj _] (coerce obj options))]
> with-redefs changes are visible across all threads.
> 
> —
> Reply to this email directly or view it on GitHub.