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=-1.9 required=5.0 tests=BAYES_00 autolearn=unavailable autolearn_force=no version=3.4.4 X-Received: by 2002:a24:7bd2:: with SMTP id q201-v6mr1371112itc.52.1533827971003; Thu, 09 Aug 2018 08:19:31 -0700 (PDT) X-Received: by 2002:aca:c744:: with SMTP id x65-v6mr103878oif.2.1533827970766; Thu, 09 Aug 2018 08:19:30 -0700 (PDT) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!feeder.eternal-september.org!feeder4.usenet.farm!feed.usenet.farm!feeder.usenetexpress.com!feeder-in1.iad1.usenetexpress.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!g24-v6no3049664iti.0!news-out.google.com!k71-v6ni3878itk.0!nntp.google.com!g24-v6no3049660iti.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Thu, 9 Aug 2018 08:19:30 -0700 (PDT) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=47.185.195.62; posting-account=zwxLlwoAAAChLBU7oraRzNDnqQYkYbpo NNTP-Posting-Host: 47.185.195.62 References: <9381f30a-a957-4477-b037-b2d60041e83e@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: Re: SI Units Checked and Unchecked From: "Dan'l Miller" Injection-Date: Thu, 09 Aug 2018 15:19:30 +0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Xref: reader02.eternal-september.org comp.lang.ada:54109 Date: 2018-08-09T08:19:30-07:00 List-Id: On Thursday, August 9, 2018 at 9:31:38 AM UTC-5, AdaMagica wrote: > Am Donnerstag, 9. August 2018 15:47:47 UTC+2 schrieb Dan'l Miller: > > I would be interested in a summary (or even better, an AI) that itemize= s all the core-language > > obstacles in currently-standardized Ada to moving all the incompatible = usages of units to be > > compile-time errors instead of raising exceptions. >=20 > Dan'l, just go to > http://www.christ-usch-grein.homepage.t-online.de/Ada/Dimension/Dimension= .html > there you'll find a summary of attempts to use dimensional arithmetics in= Ada. Thank you! (for both the webpage's useful analysis as well as the link to = it) This will be worth studying deeply. I am always looking for why C++ e= ver pulls ahead of Ada on some strong-typing topics. Compile-time enforcem= ent of units of measure is one of them. Meticulous typing (especially comp= ile-time enforcement of strong typing) is supposed to be Ada's crowning ach= ievement; C++ or any recent upstart language (e.g., Rust) is not supposed t= o be able to threaten to usurp the throne from the king on typing-enforceme= nt topics. (C++ gets an =E2=80=9COh, nevermind, go forth & prosper=E2=80=9D response f= rom me when I track a capability down to needing a Turing-complete template= engine to enact the capability only via metatemplate-programming functiona= l-language interpreter in the compiler. Ada2027 needs a bona fide Turing-c= omplete compile-time source-code generator, not Turing-complete generics as= a poor-man's substitute, as C++ has.)