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.8 required=5.0 tests=BAYES_00,INVALID_DATE autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 109fba,ef0074ec236ba6e3 X-Google-Attributes: gid109fba,public X-Google-Thread: 1014db,ef0074ec236ba6e3 X-Google-Attributes: gid1014db,public X-Google-Thread: 103376,b19fa62fdce575f9 X-Google-Attributes: gid103376,public X-Google-Thread: 108717,ef0074ec236ba6e3 X-Google-Attributes: gid108717,public X-Google-Thread: 1108a1,ef0074ec236ba6e3 X-Google-Attributes: gid1108a1,public X-Google-ArrivalTime: 1994-11-30 15:58:28 PST Newsgroups: comp.lang.ada,comp.lang.c,comp.programming,comp.lang.c++,comp.object Path: bga.com!news.sprintlink.net!howland.reston.ans.net!news2.near.net!das-news2.harvard.edu!cantaloupe.srv.cs.cmu.edu!bb3.andrew.cmu.edu!news.sei.cmu.edu!ajpo.sei.cmu.edu!riehler From: riehler@ajpo.sei.cmu.edu (Richard Riehle) Subject: Re: Why don't large companies use Ada? Message-ID: <1994Nov30.181033.16927@sei.cmu.edu> Sender: netnews@sei.cmu.edu (Netnews) Organization: AdaWorks Software Engineering References: <3bd06n$kbt@felix.seas.gwu.edu> Date: Wed, 30 Nov 1994 18:10:33 EST Xref: bga.com comp.lang.ada:8121 comp.lang.c:32669 comp.programming:5513 comp.lang.c++:39033 comp.object:9203 Date: 1994-11-30T18:10:33-05:00 List-Id: In article house@helios.usq.EDU.AU (ron house) writes: > >How about "Ada - use it when you want to multiply a length by a length >and get a length, or when you want to be prevented from dividing an area >by a length because they have different types." > This is a most peculiar example in this era of enlightened parsimonious typing. A mistake common to novice Ada designers is to promicuously define types for every possible variable. Prudent use of the typing mechansm will serve the intelligent designer. That being said, even if the types are different, one can do type conversion on numeric types. Now, if the writer is referring to the potential for constraint errors from intermediate results in long expressions of mixed type, there is a real issue. Even this issue is not a cause for alarm, and is trivially solved by experienced Ada developers. Richard Riehle AdaWorks Software Engineering Palo Alto, CA adaworks@netcom.com