home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / object / 3023 < prev    next >
Encoding:
Internet Message Format  |  1992-07-27  |  1.6 KB

  1. Xref: sparky comp.object:3023 comp.lang.eiffel:990
  2. Path: sparky!uunet!email!vexpert.dbai.tuwien.ac.at!mst
  3. From: mst@vexpert.dbai.tuwien.ac.at (Markus Stumptner)
  4. Newsgroups: comp.object,comp.lang.eiffel
  5. Subject: Re: Class methods (was: Re: How to design a data structure library)
  6. Message-ID: <5631@vexpert.dbai.tuwien.ac.at>
  7. Date: 27 Jul 92 18:03:49 GMT
  8. References: <GEOFF.92Jul27100601@wodehouse.flash.bellcore.com>
  9. Organization: DB and ES Subdivision, TU Vienna
  10. Lines: 23
  11.  
  12. From article <GEOFF.92Jul27100601@wodehouse.flash.bellcore.com>, by geoff@flash.bellcore.com (Geoffrey Clemm):
  13. > I believe you missed the central point of Richie's article, namely that
  14. > Eiffel 3.0 has a clean way of handling this situation, to quote:
  15.  
  16. >>     !!c.union (a,b);
  17.  
  18. > With which I completely agree.  This avoids the unpleasant assymetry
  19. > of c:=a.union(b).
  20.  
  21. I did get the point, I just don't like it.  I grant that the asymmetry
  22. is avoided, but this is outwiehged by the fact that using the class
  23. method is, in my opinion, a completely weird way of handling an
  24. ordinary binary operator.  Sets are a bad example for that construct,
  25. since they, as mathematical entities together with their appropriate
  26. operators, should correspond fairly closely to, say, integers or
  27. floats in this manner.  As an example, addition (which closely
  28. corresponds to set union) is not a class message, and making it one
  29. does not improve the clarity of the code.
  30.  
  31. -- 
  32. Markus Stumptner                                mst@vexpert.dbai.tuwien.ac.at
  33. University of Technology Vienna                 vexpert!mst@relay.eu.net
  34. Paniglg. 16, A-1040 Vienna, Austria             ...mcsun!vexpert!mst
  35.