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.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,9e7db243dfa070d7 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,UTF8 Path: g2news2.google.com!news4.google.com!proxad.net!feeder1-2.proxad.net!usenet-fr.net!gegeweb.org!aioe.org!not-for-mail From: =?utf-8?Q?Yannick_Duch=C3=AAne_=28Hibou57?= =?utf-8?Q?=29?= Newsgroups: comp.lang.ada Subject: Re: Do people who use Ada also use ocaml or F#? Date: Sun, 07 Nov 2010 00:41:18 +0100 Organization: Ada @ Home Message-ID: References: <87k4kz3mda.fsf@mid.deneb.enyo.de> <5jjgrklivesk$.z0is5qe7mgbt.dlg@40tude.net> <82mxpmz7t3.fsf@stephe-leake.org> NNTP-Posting-Host: w00cPq0BvzOlRCSRJJEoeQ.user.speranza.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed; delsp=yes Content-Transfer-Encoding: Quoted-Printable X-Complaints-To: abuse@aioe.org X-Notice: Filtered by postfilter v. 0.8.2 User-Agent: Opera Mail/10.63 (Win32) Xref: g2news2.google.com comp.lang.ada:16328 Date: 2010-11-07T00:41:18+01:00 List-Id: Le Sun, 07 Nov 2010 00:03:04 +0100, Dmitry A. Kazakov = a =C3=A9crit: > Furthermore, I would bet that practically any generic can be broken pe= r > erroneous instantiation, e.g. by passing function "-" where "+" expect= ed. Good point. I don't know how I didn't though about this one (may be = because I do not use generics that much). Now better understand your point about formal proof. Until we get it, wh= y = not a sanity check in generics initialization ? This sanity check could = = test assertions like the ones you would like to express in formal = contract, and raise a runtime error if ever if fails. This is no more = exception safe, but better an application which raise an error at startu= p = than one which do silly things without a single warning. -- = Si les chats miaulent et font autant de vocalises bizarres, c=E2=80=99es= t pas pour = les chiens. =E2=80=9CI am fluent in ASCII=E2=80=9D [Warren 2010]