On Sat, Sep 18, 2010 at 10:40 AM, Sean Corfield <seancorfi...@gmail.com> wrote:
> Since memoize seems to be 'forever' and caching in general smells of
> mutable state, I wondered how folks are tackling this sort of thing in
> Clojure? Are you simply dropping down to Java libraries and being
> 'non-functional' or is there some more idiomatic approach available?
I think memoization in clojure(and other language like Haskell) at the
language level is mainly used for speeding up algorithm, like the
famous finbonacci number sequence in Haskell and not as a cache
feature.

In other words, the memoization will disappear outside the function call.

caching as in web application is a completely different thing which i
would use whatever is needed for the application(memcache for
example).

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