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=unavailable autolearn_force=no version=4.0.1 Path: nntp.eternal-september.org!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail From: Kevin Chadwick Newsgroups: comp.lang.ada Subject: Re: In precision typing we trust Date: Mon, 18 Aug 2025 23:46:47 -0000 (UTC) Organization: A noiseless patient Spider Message-ID: <1080e16$3ei6e$1@dont-email.me> References: <107uv9g$3019a$1@dont-email.me> <107v1ji$303of$1@dont-email.me> <1080cst$3e70e$3@dont-email.me> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Date: Mon, 18 Aug 2025 23:46:48 +0000 (UTC) Injection-Info: dont-email.me; posting-host="36d552a004b2e492f39f7d46cb2e6bb5"; logging-data="3623118"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+DLm80AKC5DGG5ByQHNH6+t6aONCyyiqM=" User-Agent: PhoNews/3.13.3 (Android/14) Cancel-Lock: sha1:vg952mIbzeZWmQFK4aPURWzcRTo= In-Reply-To: <1080cst$3e70e$3@dont-email.me> Xref: feeder.eternal-september.org comp.lang.ada:66880 List-Id: On 19/08/2025 00:27, Lawrence DOliveiro wrote: >On Mon, 18 Aug 2025 13:08:32 +0200, Dmitry A. Kazakov wrote: > >> 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. > >Subclassing? For example engineering parameters so only valid inputs are possible using e.g. ranges. That could be a subtype or new type etc.. -- Regards, Kc