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!news3.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: Sat, 30 Oct 2010 21:12:36 +0200 Organization: Ada @ Home Message-ID: References: <87k4kz3mda.fsf@mid.deneb.enyo.de> NNTP-Posting-Host: gHYtk+mhCrTAX6LNXybaBQ.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:15953 Date: 2010-10-30T21:12:36+02:00 List-Id: Le Sat, 30 Oct 2010 14:59:47 +0200, Dmitry A. Kazakov = a =C3=A9crit: > To me it is obvious that a type system serves reuse. The property of = > being > static is aimed at correctness checks/proofs. In this context generics= = > look > quite disappointing. I do not see how this could be less safe than a design process itself. = Generics are like building something with a pattern, and this pattern is= = checked for consistency in Ada. This is not more not less safe than any = = other composition process. I agree with Chad when he/she talked about th= e = need of a validation for each instantiations (at least, by parameter set= ). = Static type system also apply with generic, this is just that it cannot = be = proved universally valid. Even static type checking cannot guarantee to = = always produce something correct, this goal needs more (like contracts).= Still true generics can be no fun when (as an example) instantiation = hierarchy comes, but this is another story which has nothing to do with = = proof of correctness. -- = Si les chats miaulent et font autant de vocalises bizarres, c=E2=80=99es= t pas pour = les chiens.