home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / lang / cplus / 18932 < prev    next >
Encoding:
Text File  |  1993-01-11  |  2.4 KB  |  57 lines

  1. Newsgroups: comp.lang.c++
  2. Path: sparky!uunet!spool.mu.edu!yale.edu!ira.uka.de!Germany.EU.net!donald!hasko
  3. From: hasko@heeg.de (Hasko Heinecke)
  4. Subject: Re: Pros and cons of C++
  5. Message-ID: <1993Jan8.171132.6620@heeg.de>
  6. Organization: Georg Heeg Objektorientierte Systeme, Dortmund, FRG
  7. References: <C0Hp1n.vp@gpu.utcs.utoronto.ca> <TMB.93Jan7174627@arolla.idiap.ch> <79416@hydra.gatech.EDU>
  8. Date: Fri, 8 Jan 1993 17:11:32 GMT
  9. Lines: 46
  10.  
  11. In article <79416@hydra.gatech.EDU> mhopper@emperor.gatech.edu (Michael A. Hopper) writes:
  12. >In article <TMB.93Jan7174627@arolla.idiap.ch> tmb@idiap.ch writes:
  13. >>
  14. >>What do I dislike about C++?
  15. >>
  16. > 1. > * No type safety.
  17. > 2. > * No pointer safety.
  18. > 3. > * No arithmetic overflow detection.
  19. > 4. > * No module system to speak of.
  20. > 5. > * No garbage collection.
  21. > 6. > * Inefficient memory management.
  22. > 7. > * Hairy scoping rules.
  23. > 8. > * Hairy, implementation dependent linking.
  24. > 9. > * A number of important optimizations are impossible.
  25. >10. > * Insufficient language support for separating implementation
  26. >    >   dependent/unportable features from the rest of the language.
  27. >>
  28. >>When I don't need to interface with existing C/FORTRAN code or when my
  29. >>algorithms get complicated enough that these latter problems with C++
  30. >>matter, I use a different language.
  31. >>
  32. >>                    Thomas.
  33. >
  34. >It's important to remember that many trade-offs were chosen for C++ for
  35. >the sake of PERFORMANCE.  This addresses points 2 and 5 above.  I either
  36. >disagree or don't understand what Thomas means by points 1, 3, 4, 6, 9, and
  37. >10.  I agree that points 7 and 8 are sometimes a hassle.  
  38. >
  39. >Another observation I have had with learning C++ is that many of the features
  40. >that SEEM to be extravagant become ESSENTIAL when writing template classes
  41. >and abstract base classes.  The more experience I have had with C++, the
  42. >more I appreciate the decisions that were made in its creation.  C++ is a
  43. >long way from being perfect, but the improvements it has offered over C has
  44. >increased my programming and debugging productivity.
  45.  
  46. 1. Why become extravagant features of C++ become essential when you try to
  47. solve non-trivial problems?
  48.  
  49. 2. Isn't it true that these are also the cases where points 7 and 8 are
  50. a hassle?
  51.  
  52. -- 
  53. +-------------------------------------------------------+
  54. | Hasko Heinecke @ Georg Heeg Objektorientierte Systeme |
  55. | I _never_ mean what I say - and nobody else does...   |
  56. +-------------------------------------------------------+
  57.