On Tue, Dec 29, 2009 at 01:58:45PM -0500, Rich Hickey wrote: >(type (Small)) >:user/Small > >You can use this keyword type tag for multimethod dispatch.
I did eventually figure this out. >I am a bit confused as to why you would want to reify a deftype. You >can reify protocols, however. I need to make something that defines it's own Comparable, and I also want a custom printer for it. Once I figured out that the multimethod dispatch in the printer uses type, and I can just use that on the deftype name, it got much easier. Hopefully there isn't too painful a transition period moving from multimethods to protocols. Thanks, David -- 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
