Thanks Stuart. You are probably right. But may be there can be a modified defn-auto-coerce .. Thats just a thought .. May be I will try to implement it . .but would love to hear any pointers you may have in that direction before I go it myself.. I am still an ametuer when it comes to Clojure .. so I want it to be a learning exercise too...
Thanks again, Sunil. On Tue, Nov 30, 2010 at 6:14 AM, Stuart Sierra <the.stuart.sie...@gmail.com>wrote: > Hi Sunil, > > This is one of those things that seems really useful for development, > but ends up being a lot of trouble down the road. For one thing, it's > hard to make it perform well. For another, it can lead to unexpected > results when you add in inheritance hierarchies and overloaded > methods. > > -S > > > On Nov 29, 3:20 am, Sunil S Nandihalli <sunil.nandiha...@gmail.com> > wrote: > > Hello everybody, > > I was just wondering if we could have functions automatically call a > > multimethod whose dispatch-value would be a vector typename of the > current > > argument and required argument type. and accept the return value of that > > function as the argument in place of the current argument. I know that > the > > typenames are just hints ..but was wondering if we can make this happen > .. I > > think that would be really usefull.. Just a thought. > > Thanks > > Sunil. > > -- > 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<clojure%2bunsubscr...@googlegroups.com> > For more options, visit this group at > http://groups.google.com/group/clojure?hl=en -- 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