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.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,9e7db243dfa070d7 X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news4.google.com!feeder.news-service.com!newsfeed.straub-nv.de!newsfeed01.sul.t-online.de!t-online.de!newsfeed.arcor.de!newsspool2.arcor-online.net!news.arcor.de.POSTED!not-for-mail From: "Dmitry A. Kazakov" Subject: Re: Do people who use Ada also use ocaml or F#? Newsgroups: comp.lang.ada User-Agent: 40tude_Dialog/2.0.15.1 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Reply-To: mailbox@dmitry-kazakov.de Organization: cbb software GmbH References: <87k4kz3mda.fsf@mid.deneb.enyo.de> <5jjgrklivesk$.z0is5qe7mgbt.dlg@40tude.net> <82mxpmz7t3.fsf@stephe-leake.org> Date: Sun, 7 Nov 2010 13:14:48 +0100 Message-ID: NNTP-Posting-Date: 07 Nov 2010 13:14:49 CET NNTP-Posting-Host: ee5732cc.newsspool1.arcor-online.net X-Trace: DXC=QOdZFX9oo:N6PJ?[X6JIXEic==]BZ:afN4Fo<]lROoRA<`=YMgDjhgBL8lJ>3=`J`C[6LHn;2LCVN[ On Sun, 07 Nov 2010 11:51:32 +0000, Simon Wright wrote: > "Dmitry A. Kazakov" writes: > >> Furthermore, I would bet that practically any generic can be broken >> per erroneous instantiation, e.g. by passing function "-" where "+" >> expected. We discard these cases as unlike, but we cannot prove that >> they indeed do not happen, until we instantiate, with is the essence >> of being non-testable. > > Good grief, most code won't give the right answers (=> answers you were > hoping for) if you violate its preconditions! That depends. If Read raised End_Error, while I hoped to get a Character, was it right or wrong? IMO one of the most important characteristics of bad design are preconditions, which can get violated. The design is extremely bad when they can be violated without a notice. Preconditions is what makes usage unsafe. -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de