From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=0.2 required=5.0 tests=BAYES_00,INVALID_MSGID, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f43e6,2c6139ce13be9980 X-Google-Attributes: gidf43e6,public X-Google-Thread: fac41,2c6139ce13be9980 X-Google-Attributes: gidfac41,public X-Google-Thread: 1108a1,2c6139ce13be9980 X-Google-Attributes: gid1108a1,public X-Google-Thread: 103376,3d3f20d31be1c33a X-Google-Attributes: gid103376,public From: Ken Garlington Subject: Re: Safety-critical development in Ada and Eiffel Date: 1997/08/15 Message-ID: <33F44261.7BD3@flash.net>#1/1 X-Deja-AN: 264314042 References: <33E9ADE9.4709@flash.net> <33F133D7.71AC@erols.com> <33F25933.7F83@flash.net> <33F27B5C.6A3C@erols.com> Organization: Flashnet Communications, http://www.flash.net Reply-To: Ken.Garlington@computer.org Newsgroups: comp.object,comp.software-eng,comp.lang.ada,comp.lang.eiffel Date: 1997-08-15T00:00:00+00:00 List-Id: Ted Velkoff wrote: > > Ken Garlington responded to an earlier post of mine: > > > > This is certainly reasonable. However, once the execution capabilities > > are removed, it seems fair to ask what Eiffel provides that comments > > (available in most langauges) don't provide. If there is not a > > significant > > difference, then Eiffel would not be any better (in this context) than > > any other language, so long as the DBC principles were followed. > > > > In my experience, there is a significant difference. I will not presume > to make a scientific claim; rather I will offer a personal, anecdotal > example. > > About two years ago, I built a modest enhancement to a system which > amounted to 4K lines each of Ada and C++. In the package specs and > module headers I included preconditions, postconditions and invariants > as comments. In the Ada bodies, I wrote if-then-else clauses to test > preconditions (violations led to a chain of exceptions raised out to > the main program). In the C++ implementations, I included conditionally > compiled calls to the assert macro (which does a core dump and spits out > a file and line number) for preconditions and trivial > postconditions. I think you're anwering the wrong mail :) Please re-read the first paragraph. The discussion is about the value of Eiffel assertions if they are _always_ turned off, vs. comments.