From 3466349423348312838
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f78e5,ccbfcafab96cf493
X-Google-Attributes: gidf78e5,public
X-Google-ArrivalTime: 2001-12-04 11:35:01 PST
Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!dispose.news.demon.net!news.demon.co.uk!demon!mail2news.demon.co.uk!not-for-mail
From: Pete Becker <petebecker@acm.org>
Newsgroups: comp.std.c++
Subject: Re: Proposol to increase robustness of programs
Date: Tue,  4 Dec 2001 19:34:01 GMT
Organization: Dinkumware, Ltd
Approved: Fergus Henderson <fjh@cs.mu.oz.au>, moderator of comp.std.c++
Message-ID: <3C0C1E81.D4989F31@acm.org>
References: <3C058126.36357A00@acm.org> <memo.20011130234854.62285A@brangdon.madasafish.com>
X-Trace: mail2news.demon.co.uk 1007494446 mail2news:24071 mail2news mail2news.demon.co.uk
X-Complaints-To: abuse@demon.net
X-Mail2News-Path: news.demon.net!mulga.cs.mu.oz.au
X-Authentication-Warning: mulga.cs.mu.OZ.AU: fjh set sender to devnull@stump.algebra.com using -f
X-Robomod: STUMP, ichudov@algebra.com (Igor Chudov)
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
NNTP-Posting-Date: 4 Dec 2001 00:52:52 GMT
X-Accept-Language:  en
Lines: 25
Xref: archiver1.google.com comp.std.c++:8453

Dave Harris wrote:
> 
> petebecker@acm.org (Pete Becker) wrote (abridged):
> > So this error falls out automatically from routine testing.
> 
> If I preferred unit tests over compile-time error checking, I wouldn't be
> using a statically type-checked language like C++.
> 
> Do you realise how much simpler C++ could be if we relegated all error
> detection to unit tests? Why should this particular problem be left to
> testing when the compiler tries so hard to find other problems?

Because it is very rare in professional code, and doesn't need explicit
testing.

-- 
Pete Becker
Dinkumware, Ltd. (http://www.dinkumware.com)

---
[ comp.std.c++ is moderated.  To submit articles, try just posting with ]
[ your news-reader.  If that fails, use mailto:std-c++@ncar.ucar.edu    ]
[              --- Please see the FAQ before posting. ---               ]
[ FAQ: http://www.research.att.com/~austern/csc/faq.html                ]



