Keep your static concerns out of my dynamic language ; ) Seriously, do you think/know that's the reason people don't do this? Even in Java, you don't know which method implementation will be called until runtime. And you can define a default polyimpl with an always-true predicate, once you've chosen a solution for handling cases with more than one matching implementation.
On Wednesday, November 7, 2012 7:49:19 PM UTC+1, raould wrote: > > On Wed, Nov 7, 2012 at 10:08 AM, Matt Ridsdale > <mrid...@gmail.com<javascript:>> > wrote: > > that we could be even more flexible if each method implementation > > was associated with a predicate function of the args, instead of being > > associated with a fixed dispatch value. See the below code for an > example of > > ah, so you can be even less likely to ever statically know what cases > you've covered? :-) > -- 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