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