home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / sys / mac / oop / macapp3 / 608 < prev    next >
Encoding:
Text File  |  1993-01-25  |  1.8 KB  |  44 lines

  1. Newsgroups: comp.sys.mac.oop.macapp3
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!saimiri.primate.wisc.edu!ames!data.nas.nasa.gov!taligent!lsr.taligent.com!user
  3. From: lsr@taligent.com (Larry Rosenstein)
  4. Subject: Re: C++ (was re: bedrock defection
  5. Message-ID: <lsr-250193180305@lsr.taligent.com>
  6. Followup-To: comp.sys.mac.oop.macapp3
  7. Sender: usenet@taligent.com (More Bytes Than You Can Read)
  8. Organization: Taligent, Inc.
  9. References: <727841301.8123714@AppleLink.Apple.COM>
  10. Date: Tue, 26 Jan 1993 02:10:17 GMT
  11. Lines: 31
  12.  
  13. In article <727841301.8123714@AppleLink.Apple.COM>,
  14. ALANDAIL@AppleLink.Apple.COM (Personal Software, Alan Dail,PRT) wrote:
  15. > that C++ is better than C).  For example, anywhere you can use a ==, you can
  16.  
  17. You're right about this, and I haven't considered these issues.  The == vs.
  18. = problem is a flaw that C++ inherits from C.  The same is true of switch
  19. statements (where leaving out the break in each case is usually a mistake).
  20.  
  21. As someone mentioned, MPW C++ does warn you about some of these things, and
  22. a better compiler would do a better job of warning you.
  23.  
  24. > like having various features clash when used together or having the wrong
  25.  
  26. I think there's a tradeoff here.  You could remove lots of features from
  27. the language, but then there would be useful things that you couldn't do. 
  28. For example, removing stack-based objects would simplify things
  29. considerably, but stack-based objects are useful in many places.
  30.  
  31. One of the premises behind my MADA Conference talk on C++ is that if you
  32. develop some "rules of thumb" (or "idioms" as James Coplien describes them)
  33. for using C++ then it's much easier to deal with the language.
  34.  
  35. > defaults when using features (why isn't virtual the default?).  It's a shame
  36.  
  37. C++ was designed for maximum performance.
  38.  
  39. Larry Rosenstein
  40. Taligent, Inc.
  41.  
  42. lsr@taligent.com
  43.