[Prev][Next][Index][Thread]

Re: simple method dispatch question



Michael Schuerig wrote:
> 
> Michael T. Richter <mtr@ottawa.com> wrote:
..
> Do you, or anyone, have suggestions how an ideal IDE would do this job?

    I think the ideal IDE would be flexible. There are a couple of 
  "views" I can think of. 

    1. source code order. As people mentioned this "correct" order
       may be domain specific.  Unfortunately, this is dependent upon
       the author's domain knowledge. :-) 
      
       
    2. A heuristic when one argument is always a singleton to 
         order in
               i. increasing/decreasing order if basic primative type
                      (number, string, symbol, etc.) 
               ii. preorder if classes. (or some kind of hierarchical
order). 
                    [ for a hiearchical order I'd layout of the primary
                      classes first (since they're a tree) and then 
                      sprinkle in the tree classes where they made sense.
                      Of course alphabetical order makes searching by
eyeball
                      easier. ] 

    3.  A find applicable methods. Given a generic and classes for certain
        arguments and get back the "sorted" applicable methods. I guess
        you could use <object> for args you didn't care about. 

  
Actually, the ideal IDE would be one that let you easily add your own
"viewer". :-)



Follow-Ups: References: