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: 103376,9e7db243dfa070d7 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news3.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> Date: Sat, 30 Oct 2010 14:59:47 +0200 Message-ID: NNTP-Posting-Date: 30 Oct 2010 14:59:44 CEST NNTP-Posting-Host: e59ef580.newsspool2.arcor-online.net X-Trace: DXC=QB=ONIXhIS785[]]\]T081A9EHlD;3Yc24Fo<]lROoR18kF[ On Sat, 30 Oct 2010 14:18:09 +0200, Florian Weimer wrote: > * Dmitry A. Kazakov: > >> On Thu, 28 Oct 2010 19:27:40 -0700 (PDT), Chad R. Meiners wrote: >> >>> I have chosen languages that support generics because quite frankly >>> after learning Ada, any statically typed language that does not >>> support generics is not a suitable language for developing anything >>> of substance. >> >> I don't see any connection between static typing and parametric >> polymorphism (AKA generics), except that both are static. > > For me, it's the realization that without generics, a static type > systems tends to disallow too many useful programs. This requires further explanations. Since generics are themselves static, the problem is not in types being static, but in something else. Actually, the question is whether a static type system should be extended by means of generics or by other means. I saw no discussion why this should be done with generics, as well as any discussion about the power and desired properties of a static type system. 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. -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de