Clojure's derive function creates an inheritance relationship between  
keywords (or symbols). I have taken to calling this "keyword  
inheritance" to emphasize that the inheritance is at the level of  
*names*, not of interfaces or methods.

The book covers this in the section "Adding Inheritance to Ad Hoc  
Types" (p. 254 in the print edition I believe).

Cheers,
Stuart

> Hi Stuart,
>
> Could you give me a two-sentence description, or a pointer to a  
> description, of what keyword inheritance is? Apparently this is  
> something I haven't encountered or don't remember...
>
> Thanks a lot.
>
> On Wed, Jul 22, 2009 at 10:48 PM, Stuart Halloway <stuart.hallo...@gmail.com 
> > wrote:
>
> I certainly agree with the addition of "yet". I am finding
> multimethods to be more and more useful every day. I am now covering
> keyword inheritance during *intro* talks on Clojure.
>
> Stuart
>
> > I've just read in the Stuart's book that multimethod dispatching on
> > something other than Java inheritance is rarely used. It seems to me
> > that there is a huge potential for their use in something that I do,
> > so I'd add "yet" to his words. Anyway, what I would ask someone from
> > the core team, or someone else that knows the internals is:
> > How fast the multimethods dispatch performs with large taxonomies
> > compared to Java inheritance or small taxonomies? For example, a  
> 1000
> > or thousands elements in different taxonomies (or even a  
> million?). Is
> > it designed to perform well in such cases?
> >
> > >
>
>
>
>
>
> >


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to