From: Dan.Pop@mail.cern.ch (Dan Pop)
Subject: Re: What do you think of osf/1?
Date: 1995/06/27 [thread overview]
Message-ID: <danpop.804284125@rscernix> (raw)
In-Reply-To: DSR.95Jun27150145@lns100.lns.cornell.edu
In <DSR.95Jun27150145@lns100.lns.cornell.edu> dsr@lns598.lns.cornell.edu (Daniel S. Riley) writes:
>In article <danpop.803827853@rscernix> Dan.Pop@mail.cern.ch (Dan Pop) writes:
>Dan.Pop> If the developer cannot be sure that he managed to do this
>Dan.Pop> before shipping, he will replace assert() with proper error
>Dan.Pop> detection and reporting code. Joe User should _never_ see
>Dan.Pop> something looking like "assertion failed...".
>
>So DEC should redefine assert to print out a polite error message? I
>fail to see how that does any good--it is still an incomprehensible
>error message. Whether it says "assertion failed" followed by some
>gibberish or "A fatal error has occurred, please submit an SPR to DEC
>with this information" followed by some gibberish makes little
>difference to me. Replacing every "assert()" with a more informative
>message would be a waste of engineering time, and a undesirable
>impediment to free use of assert().
Even if it makes little difference to you, it makes a lot of difference
to the confused user who doesn't understand what's wrong with his Fortran
code that it doesn't link properly. A C programmer, at least knows what
an assert is and understands immediately that the fault isn't in his
files. The C illiterate programmer isn't (and shouldn't be) required to
know what a C assert is in order to compile and link his programs.
Internal consistency checks are a good thing, using assert() to report
their failure isn't. Those who invented NDEBUG knew what they were
doing.
If a program detects itself that it's broken, it can let the user know
the bad news in a friendly, non confusing, manner and assert() isn't
the right tool for this.
Dan
--
Dan Pop
CERN, CN Division
Email: Dan.Pop@mail.cern.ch
Mail: CERN - PPE, Bat. 31 R-004, CH-1211 Geneve 23, Switzerland
next prev parent reply other threads:[~1995-06-27 4:00 UTC|newest]
Thread overview: 68+ messages / expand[flat|nested] mbox.gz Atom feed top
1995-06-16 4:00 What do you think of osf/1? Mark Saltzman
1995-06-17 4:00 ` Saul Tannenbaum
1995-06-19 4:00 ` Joseph B. Gurman
1995-06-19 4:00 ` Saul Tannenbaum
1995-06-21 4:00 ` Peter Graw
1995-06-21 4:00 ` Jerry Waldorf
1995-06-17 4:00 ` Mark Davis
1995-06-17 4:00 ` Jeff Tyler
1995-06-17 4:00 ` Dan Pop
1995-06-19 4:00 ` J.Brainard
1995-06-19 4:00 ` oberman
1995-06-19 4:00 ` Mark Davis
1995-06-17 4:00 ` Frank Fabbrocino
1995-06-17 4:00 ` Mark Charette
1995-06-18 4:00 ` Wuxu Peng
1995-06-19 4:00 ` Mike Iglesias
1995-06-20 4:00 ` McGonagall burst into the room
1995-06-20 4:00 ` Andrew Gallatin
1995-06-20 4:00 ` Saul Tannenbaum
1995-06-20 4:00 ` Dan Pop
1995-06-21 4:00 ` Andrew Gallatin
1995-06-21 4:00 ` Dan Pop
1995-06-21 4:00 ` Andrew Gallatin
1995-06-21 4:00 ` Dan Pop
1995-06-21 4:00 ` Andrew Gallatin
1995-06-22 4:00 ` Jyrki Havia
1995-06-22 4:00 ` Dan Pop
1995-06-22 4:00 ` Joseph B. Gurman
1995-06-23 4:00 ` Peter da Silva
1995-07-01 4:00 ` evaldas
1995-07-06 4:00 ` Michael C Tiernan
1995-07-06 4:00 ` Michael C Tiernan
1995-07-07 4:00 ` Dan Hildebrand
1995-06-22 4:00 ` Scott J. Kolodzieski
1995-06-25 4:00 ` Mark Newton
1995-06-26 4:00 ` Mike Iglesias
1995-06-26 4:00 ` Dan Pop
1995-06-21 4:00 ` Nick Hill
1995-06-21 4:00 ` Daniel S. Riley
1995-06-26 4:00 ` John Kohl
1995-06-27 4:00 ` Daniel S. Riley
1995-06-27 4:00 ` Dan Pop [this message]
1995-06-21 4:00 ` Kurt M. Hockenbury
1995-06-21 4:00 ` Jay Maynard
1995-06-25 4:00 ` Keith DeLong
1995-06-21 4:00 ` Wuxu Peng
1995-06-21 4:00 ` Mike Iglesias
1995-06-21 4:00 ` oberman
1995-06-22 4:00 ` Peter Mayne
1995-06-26 4:00 ` Wuxu Peng
1995-06-27 4:00 ` Daniel S. Riley
1995-06-27 4:00 ` Dan Pop
1995-06-19 4:00 ` Christophe MATHIEU
[not found] ` <3s4i5m$ff9@jac.zko.dec.com>
1995-06-20 4:00 ` Christophe MATHIEU
1995-06-20 4:00 ` Trin Tantsetthi
1995-06-19 4:00 ` Jason K Fry
1995-06-20 4:00 ` Steve Dale
1995-06-20 4:00 ` Carl Harris
1995-06-20 4:00 ` Tim Lucia
1995-06-28 4:00 ` Jon Jenkins
1995-06-29 4:00 ` Saul Tannenbaum
1995-07-03 4:00 ` John Hascall
1995-07-03 4:00 ` Stephen Mullin
1995-06-20 4:00 ` Ed O'Loughlin
1995-06-20 4:00 ` Matthias Dolder
1995-06-20 4:00 ` Sean Donelan
1995-06-21 4:00 ` Carl Harris
1995-06-23 4:00 ` Peter da Silva
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox