The Artima Developer Community
Sponsored Link

Artima Developer Spotlight Forum
Namespacey Programming

30 replies on 3 pages. Most recent reply: Dec 12, 2007 1:21 PM by nes

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 30 replies on 3 pages [ « | 1 2 3 ]
nes

Posts: 137
Nickname: nn
Registered: Jul, 2004

Re: Namespacey Programming Posted: Dec 12, 2007 1:21 PM
Reply to this message Reply
Advertisement
> nes wrote
> -snip-
> > If the first object was a Spaceship I would have
> > chosen the first method over the second because a
> > spaceship is more specific than a vehicle and I
> consider
> > the first parameter more important than the second.
>
> I haven't checked, my guess is that all the parameters are
> regarded as equally important - dispatch on multiple
> parameters, not dispatch on parameter 1 then 2 then 3 ...

Just as reference:
http://lambda-the-ultimate.org/node/2571#comment-38802
Apparently it is called asymmetric and symmetric multimethods.

Flat View: This topic has 30 replies on 3 pages [ « | 1  2  3 ]
Topic: Namespacey Programming Previous Topic   Next Topic Topic: Puppets Do JRuby

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use