On 02.06.2009, at 12:01, Glen Stampoultzis wrote:

> I'm used to polymorphism in OO systems where everything in driven  
> from inheritance hierarchy.  Clojures defmulti style polymorphism  
> seems powerful but has left me wondering how to most effectively  
> use it.  I'm looking for some good real world examples of how  
> people have used polymorphism in clojure.

There are a couple of generic interfaces implemented as multimethods  
in clojure-contrib:

        http://code.google.com/p/clojure-contrib/source/browse/#svn/trunk/ 
src/clojure/contrib/generic

An implementation of complex numbers based on these interfaces is  
there as well:

        http://code.google.com/p/clojure-contrib/source/browse/trunk/src/ 
clojure/contrib/complex_numbers.clj

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

Reply via email to