home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c++
- Path: sparky!uunet!rational.com!thor!rmartin
- From: rmartin@thor.Rational.COM (Bob Martin)
- Subject: Re: feedback wanted on appropriate OOPL
- Message-ID: <rmartin.726795534@thor>
- Sender: news@rational.com
- Organization: Rational
- References: <726278910snx@trmphrst.demon.co.uk> <rmartin.726674455@thor> <TMB.93Jan10170408@arolla.idiap.ch> <1993Jan10.220917.22879@netcom.com> <TMB.93Jan11010738@arolla.idiap.ch>
- Date: Mon, 11 Jan 1993 23:38:54 GMT
- Lines: 62
-
- tmb@arolla.idiap.ch (Thomas M. Breuel) writes:
-
- |Detecting errors at compile time is better than detecting them
- |at runtime. But detecting errors at runtime is better than not
- |detecting them at all.
-
- |Unfortunately, the majority of errors that are detectable at all can
- |only be detected at runtime.
-
- I disagree with this statement. In my experience, the majority of
- detectable errors, are detected in the compilation phase (and in the
- code review phase of course).
-
- | C++ has no support for runtime error
- |checking,
-
- Although there are common environments that provide it.
-
- |and C++ programmers leave out most of those checks (many
- |couldn't be coded efficiently in user code anyway). That makes
- |C++ programs relatively untrustworthy, but gives everybody the
- |illusion that C++ is a "fast" language.
-
- I don't think the speed is an illusion. Nor do I agree that C++
- programs are necessarily less trustworthy than stalk programs.
-
- |I believe that safety will become of paramount importance in software
- |over the next decade.
-
- I am in wholehearted, enthusiastic agreement.
-
- |C++ will either adapt by mandating more runtime
- |checks (integer overflow, pointer checks, garbage collection),
-
- Probably through the agency of class libraries which provide these
- runtime checks transparently.
-
- Certainly vector bounds checking and arithmetic exception testing can
- all be encapsulated within classes.
-
- |or
- |other languages will take over its niche.
-
- This is inevitable, but probably not soon.
-
- |But even if C++ adapts, it
- |is still at a disadvantage, since it seems that many runtime safety
- |features are more expensive to provide in C++ in a way that is
- |compatible with C++ than in other languages that aren't hampered
- |by backwards compatibility.
-
- This I doubt. I think it is more that some runtime features are
- expensive, period. Languages that support them, have made a different
- tradeoff than that made in C++, and have sacrificed something else
- (probably speed) thereby.
-
-
- --
- Robert Martin Training courses offered in:
- R. C. M. Consulting Object Oriented Analysis
- 2080 Cranbrook Rd. Object Oriented Design
- Green Oaks, Il 60048 (708) 918-1004 C++
-