On Mon, Dec 22, 2008 at 2:25 AM, Mark Engelberg
<mark.engelb...@gmail.com> wrote:
>
> Aside from the memoization example for
> which it was invented, I am hard-pressed to think of a good use for
> atoms.

Not having used them myself, I can't think of many good examples
either. However, one in addition to the cache example would be an
auto-incrementing identifier; something like a database sequence. It's
semantics wouldn't change if there were gaps in the produced values as
long as all ID's were unique.

- J.

--~--~---------~--~----~------------~-------~--~----~
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
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