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