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,FREEMAIL_FROM, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,d89b08801f2aacae X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-04-30 10:05:15 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!nntp.abs.net!news.voicenet.com!nntp.upenn.edu!msunews!not-for-mail From: "Chad R. Meiners" Newsgroups: comp.lang.ada Subject: Re: Is strong typing worth the cost? Date: Tue, 30 Apr 2002 13:02:34 -0400 Organization: Michigan State University Message-ID: References: <4519e058.0204290722.2189008@posting.google.com> <3CCE8523.6F2E721C@earthlink.net> Reply-To: "Chad R. Meiners" NNTP-Posting-Host: arctic.cse.msu.edu X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Xref: archiver1.google.com comp.lang.ada:23281 Date: 2002-04-30T13:02:34-04:00 List-Id: "dmjones" wrote in message news:Xns9200929868B11derekknosofcouk@62.253.162.107... > Why? Can you prove to me that the benefits will be greater > than the costs? If you want to write the SAME programs (one with and one without strong typing), you will have to analyze the constraints that you wish to place on variables in both programs. The cost of using a strong type system is the creation of types that satisfy your constraints; the cost of not using a strong type system is writing the code so that it audits itself with constraint checks every time it modifies the variables. Note that if you do not wish to place constraints on any variables the strong typing system does not cost more than the weak typing system since you do not have to create any types. One can easily construct examples where the strong typing systems costs less. Can you construct an example where it costs more? If you want to write DIFFERENT programs (one with strong typing the others without), how can you compare the costs of strong typing against the cost of weak typing? -CRM