From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on ip-172-31-91-241.ec2.internal X-Spam-Level: X-Spam-Status: No, score=0.0 required=3.0 tests=none autolearn=ham autolearn_force=no version=4.0.1 Path: nntp.eternal-september.org!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail From: "Dmitry A. Kazakov" Newsgroups: comp.lang.ada Subject: Re: In precision typing we trust Date: Mon, 18 Aug 2025 13:08:32 +0200 Organization: A noiseless patient Spider Message-ID: <107v1ji$303of$1@dont-email.me> References: <107uv9g$3019a$1@dont-email.me> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Mon, 18 Aug 2025 11:08:34 +0000 (UTC) Injection-Info: dont-email.me; posting-host="0df8343c76b24deb387e96e7e9ae2a5e"; logging-data="3149583"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18zc/yP2e0x1r2RYb9oGZhfwOu/+m2TLbo=" User-Agent: Mozilla Thunderbird Cancel-Lock: sha1:enbPT+RSPRqU6mUkWUfPpF/Q3ho= Content-Language: en-US In-Reply-To: <107uv9g$3019a$1@dont-email.me> Xref: feeder.eternal-september.org comp.lang.ada:66875 List-Id: On 2025-08-18 12:29, Kevin Chadwick wrote: > On LinkedIn Richard Riehle suggested that strong typing was claimed by many > languages but Ada offers more in precision typing. I wonder if precision > would fit around the coin? These are unrelated issues. Strong typing is about: 1. Any object has a type. Note that many OO languages violate this principle, but not Ada which has T'Class and T separate. 2. Types have definite set of operations, arguments and results are typed. No, ellipsis, no messages (calling an operation on any object), no pattern matching of calls etc. 3. Types are insulated unless a relationship is explicitly stated by the programmer. E.g. no implicit type conversions. What Richard refers to is an accuracy of mapping a type to the problem space. Talking about numerical entities the model types have precision, range, accuracy (float vs. fixed-point vs. unbounded), behavior like rounding, handling of exceptional states (breaking out the model) etc. A counter example to Richard's statement. A weakly typed PL/1 had precision types. -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de