gen-class is only right when you need to do concrete inheritance. That may be true when doing Java interop, but with a well-designed Java library it doesn't have to be.
Stu > Thanks for that benchmark example, Rich. One thing that really > intrigues me here is that the reify version is substantially faster > than the gen-class version. Is there any way to harness the speed of > the reify from external Java libraries calling into Clojure, or is > gen-class still pretty much the "right" way to build a component > intended for use from Java? > > -- > You received this message because you are subscribed to the Google > Groups "Clojure" group. > To post to this group, send email to [email protected] > Note that posts from new members are moderated - please be patient with your > first post. > To unsubscribe from this group, send email to > [email protected] > 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 [email protected] Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/clojure?hl=en
