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=1.3 required=5.0 tests=BAYES_00,INVALID_MSGID, MSGID_RANDY autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,1e5c102037393131 X-Google-Attributes: gid103376,public From: Robert Dewar Subject: Re: Assertions Date: 1999/05/21 Message-ID: <7i2f8a$uki$1@nnrp1.deja.com>#1/1 X-Deja-AN: 480331051 References: <3736D243.1EEBF1AB@globalnet.co.uk> <3736F549.E3DDCDEB@pwfl.com> <7h83lc$rd$1@nnrp1.deja.com> <3739CECA.6A49865B@averstar.com> <7hqe7m$q7i@sjx-ixn1.ix.netcom.com> <3742eba6@eeyore.callnetuk.com> <7hv6bb$1l9@dfw-ixnews6.ix.netcom.com> X-Http-Proxy: 1.0 x42.deja.com:80 (Squid/1.1.22) for client 166.72.71.94 Organization: Deja.com - Share what you know. Learn what you don't. X-Article-Creation-Date: Fri May 21 02:09:15 1999 GMT Newsgroups: comp.lang.ada X-Http-User-Agent: Mozilla/4.04 [en] (OS/2; I) Date: 1999-05-21T00:00:00+00:00 List-Id: In article , Ehud Lamm wrote: > Are there any documents about this design issue? I am very > much interested in DBC ("design by contract"), which I think > is one of the nicest ideas in > SE. So why did Ada95 dismiss it? DBC is a methodology, which of course you can adopt in any language, and indeed Ada is quite well suited for this purpose. The issue of whether specific language features should be designed into the language to support DBC is a different one. It is of COURSE not the case that all elements of a DBC approach can be captured by Eiffel assert statements (as soon as you constrain the syntax and semantics of such assertions, you limit their applicability). Obviously some level of support for design contracts seems like a good idea. FOr example, an Ada package spec is exactly an interface contract. Are assertions a la Eiffel the right form? Not clear the answer is yes. There are MANY other similar constructions and a lot of design room here. But to think that Ada dismissed DBC just because it did not adopt the particular partial assertion language facilities of Eiffel misses the point I think. --== Sent via Deja.com http://www.deja.com/ ==-- ---Share what you know. Learn what you don't.---