On Thu, Feb 16, 2012 at 4:39 PM, kovas boguta <kovas.bog...@gmail.com>wrote:

> I'm arguing that IMHO, the atom+watcher abstraction is not rich enough
> to build upon.
>

I'm not disagreeing :)


> If you want to roll your own, you need to maintain your own
> notification system and bypass the existing mechanism entirely. This
> is what I'll end up doing. Though if the update action had an
> additional parameter, it would be more flexible.
>

Probably not worth breaking the expected behavior of Atoms.


> Out of curiosity, what do you do with the old value?


There are many reasons you might want to use the old value when developing
user interfaces. All useful data-binding layers I'm familiar with from
Cocoa to Backbone.js provide it.

David

-- 
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 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Reply via email to