home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / lang / cplus / 19902 < prev    next >
Encoding:
Internet Message Format  |  1993-01-26  |  3.0 KB

  1. Xref: sparky comp.lang.c++:19902 comp.object:5056
  2. Newsgroups: comp.lang.c++,comp.object
  3. Path: sparky!uunet!portal!samantha
  4. From: samantha@shell.portal.com (Samantha Atkins)
  5. Subject: Re: Pros and cons of C++
  6. Message-ID: <C1G70F.DH3@unix.portal.com>
  7. Sender: news@unix.portal.com
  8. Nntp-Posting-Host: jobe
  9. Organization: Portal Communications Company -- 408/973-9111 (voice) 408/973-8091 (data)
  10. References: <C0Hp1n.vp@gpu.utcs.utoronto.ca> <MUTS.93Jan12100059@PMCS.estec.esa.nl>
  11. Date: Tue, 26 Jan 1993 06:21:50 GMT
  12. Lines: 48
  13.  
  14. In article <MUTS.93Jan12100059@PMCS.estec.esa.nl> muts@estec.esa.nl (Peter Mutsaers) writes:
  15. >>>On Thu, 7 Jan 1993 15:15:22 GMT, yjohn@gpu.utcs.utoronto.ca (John Ross) said:
  16. >
  17. >  John> I have recently come to grips with having to learn C++; mainly due to
  18. >  John> the bandwagon effect. It doesn't look like there will be any pure C
  19. >  John> programmers left in a couple of years.  I agree that the language is
  20. >  John> very complex, and has many shortcomings.  
  21. >
  22. >  John> Why then is it becoming so popular?  Why the deluge of texts,
  23. >  John> articles, magazines, news groups, compilers, etc?  It seems to
  24. >
  25. >Because it is not complex, especially not if you already know C.
  26. >Sometimes pureness was offered to compatability with C, but that of
  27. >course also is an advantage. With minimal extra syntax (=> easy to
  28. >learn and remember) full OO support was added. If you look at the
  29.  
  30. Syntax is not, it seems to me, the *main* problem.  The problem is the semantics
  31. and behavior of the language.  Items like order of construction, object data 
  32. layout, order of destruction, automatic object copies with not always so
  33. simple semantics and implications to name only a few.  I am quite good at
  34. learning new languages and achieving fluency.  C++ took me about 3 times 
  35. longer than anything else I've encountered to date.
  36.  
  37. >The implications can be complex, but that is more due to OO than to
  38. >C++ in particular. But it pays for most applications.
  39.  
  40. While I grant that their are some interesting and often overlooked 
  41. implications of using OO it is not, imo, true that C++ complexity is
  42. limited only to those.
  43.  
  44. >
  45. >IMHO the main criticism on C++ is that it does not *enforce* pure OO
  46. >structured programs. On the other hand, I, and many other programmers,
  47. >don't like to be forced too much in a direction and I think I can have
  48. >my own discipline to do things right, and like to have the freedom to
  49. >brake the pure rules in the rare cases where that is advantageous. Of
  50. >course most managers prefer other languages so that they can control
  51. >you better (like Ada).
  52.  
  53. Freedom to break the rules is a very nice formula for anarchy.  My main
  54. problem with C++ is that the rules are not clearer in their derivation,
  55. interplay or application.  This means that it is not easy to apply or 
  56. understand or predict program behavior NOT that I or you enjoy more freedom.  
  57.  
  58. ___________________________________________________________________________
  59. Samantha Atkins                | Object Oriented Training, 
  60. Object Enterprises            | Consulting and Products
  61. ---------------------------------------------------------------------------
  62.