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,FREEMAIL_FROM autolearn=unavailable autolearn_force=no version=3.4.4 X-Received: by 10.99.176.75 with SMTP id z11mr4594121pgo.1.1498231669928; Fri, 23 Jun 2017 08:27:49 -0700 (PDT) X-Received: by 10.157.40.162 with SMTP id s31mr214274ota.12.1498231669875; Fri, 23 Jun 2017 08:27:49 -0700 (PDT) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!news.eternal-september.org!feeder.eternal-september.org!news.glorb.com!185no251072itv.0!news-out.google.com!k7ni140itk.0!nntp.google.com!185no251069itv.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Fri, 23 Jun 2017 08:27:49 -0700 (PDT) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=194.98.77.127; posting-account=F4OyugoAAABQod8iTn6AU7wMocsaGOvw NNTP-Posting-Host: 194.98.77.127 References: <1ac5a44b-4423-443a-a7bb-2864d9abe78f@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: Re: Ada Annoyances From: raph.amiard@gmail.com Injection-Date: Fri, 23 Jun 2017 15:27:49 +0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Xref: news.eternal-september.org comp.lang.ada:47080 Date: 2017-06-23T08:27:49-07:00 List-Id: Le mercredi 21 juin 2017 12:13:14 UTC+2, Lucretia a =C3=A9crit=C2=A0: > On Wednesday, 21 June 2017 02:12:51 UTC+1, pyth...@gmail.com wrote: > > I've recently been trying to learn some Ada, however, I've encountered = a few annoyances. I tend to perhaps be a bit too concerned about performanc= e, so I try to stay away from things like tagged types when I don't actuall= y need them (which is most of the time). But for some reason, there are som= e features that seemingly require tagged types for no reason - custom index= ing and iterators.=20 > >=20 >=20 > Your thinking is pretty stupid tbh. I've come across this numerous times.= "Oh, don't use a virtual, it's slow!" It's "slower" because it needs anoth= er load, big fucking deal, CPU's are fast enough now. This line of thinking is terrible, and you're being insulting to somebody a= sking questions about the language. Way to go ! Ada forcing tagged types on you to use certain features *is* a problem, if = only because certain Ada users are forbidden to use tagged types altogether= and thus are prevented to use a lot of useful features. With that said, I agree that if you can use tagged types, and your only con= cern is an hypothetical performance problem, then go ahead and use tagged t= ypes. As explained in another mail you can even choose by call-site if you'= re going to dispatch or not.