> While python's multimethod module allows function overloading based on > types, here's another approach to do the same based on a switching function > (clojure style) or on a set of conditions. > > Clojure style multimethod functions in > python<http://codeblog.dhananjaynene.com/2010/08/clojure-style-multi-methods-in-python/>
Please don't claim that the above is `Clojure style multimethods'. Clojure multimethods can dispatch on an arbitrary function of `the arguments' given to the multimethod and not just on any arbitrary function of `the properties of the object'. Regards, BG -- Baishampayan Ghose b.ghose at gmail.com _______________________________________________ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers