On 18 Dec 2009, at 15:03, Sean Devlin wrote: > The last entry is the most relevant to a map-utils library. Check out > the visitor stuff: > > http://groups.google.com/group/clojure-dev/msg/6c1bbce17cafdf52 > > The idea is to take your generic functor application idea and put it > on steroids. I'm going to be writing about this a lot more once 1.1 > is out the door. A whole lot.
The functor abstraction is certainly not my idea, I just wrote the Clojure implementation, which is almost trivial. Functors have their origin in mathematics (category theory, see http://en.wikipedia.org/wiki/Functor) , although the link to functors in functional programming is not as evident or straightforward as some make it seem to be. Functors are a well-established and much-used abstraction in Haskell and part of its standard library. Haskell purists would probably complain that my Clojure version has nothing to do with the "real thing" because Clojure doesn't have static typing, but the practical utility of functors is the same in Clojure as it is in Haskell. Your visitor approach looks a bit like the data structure walkers in clojure.walk. Could both be unified into a single concept and library? Konrad. -- 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