I’ve been playing a bit with Clojure recently.
Playing only: I haven’t written anything serious yet. One thing I did write,
though, was the
Clojure example
in Geir Magnusson Jr’s
Java Mongo driver.
There’s a bug somewhere, though: the sample only prints records 1 and 3 out
of 3. The Java sample works correctly, as does the JRuby sample. I can’t
figure out why, because the Clojure code that iterates over the records that
are inserted is pretty simple. Here’s the code: