On Wed, Jan 5, 2011 at 9:21 PM, Timothy Pratley wrote:
> Neat, looks pretty nice.
> I love invitations to nit pick!
> database.clj
> (defn complete-todo [id]
> (dosync (ref-set *todo* (vec (remove #(= (get % :id) id) @*todo*)
> 1) ref-set is unnecessary you could re-factor this to use alter.
Neat, looks pretty nice.
I love invitations to nit pick!
database.clj
(defn complete-todo [id]
(dosync (ref-set *todo* (vec (remove #(= (get % :id) id) @*todo*)
1) ref-set is unnecessary you could re-factor this to use alter. The
result is the same, but semantically set only applies when the