From: Niklas Holsti <niklas.holsti@tidorum.invalid>
Subject: Re: calling function but ignoring results
Date: Fri, 9 Jul 2021 22:20:56 +0300 [thread overview]
Message-ID: <ikrlspFjskkU1@mid.individual.net> (raw)
In-Reply-To: <sca3lg$de5$1@dont-email.me>
On 2021-07-09 21:14, G.B. wrote:
> On 30.06.21 08:06, Randy Brukardt wrote:
>
>> In Ada 202x, renaming is easier (assuming the usual case where
>> overloading
>> isn't involved):
>>
>> declare
>> Ignore renames Foo (Baz);
>> begin
>> null;
>> end;
>
> Is this "type-less" naming a copy of the popular omission schemes
> like auto in C++? Optional type annotations in Swift, or Scala?
I don't know all the origins of this language change, but it can be seen
as a correction because it avoids the wart in the earlier Ada form of
renaming, where a (sub)type name is included. The wart is that the
constraints of that (sub)type are essentially ignored, and so can be
misleading.
AI12-0275 seems to be the main origin of this change:
http://www.ada-auth.org/cgi-bin/cvsweb.cgi/ai12s/ai12-0275-1.txt?rev=1.9&raw=N
next prev parent reply other threads:[~2021-07-09 19:20 UTC|newest]
Thread overview: 28+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-06-29 19:25 calling function but ignoring results Matt Borchers
2021-06-29 19:52 ` Jeffrey R. Carter
2021-06-29 20:34 ` Dmitry A. Kazakov
2021-06-30 6:06 ` Randy Brukardt
2021-07-09 18:14 ` G.B.
2021-07-09 19:20 ` Niklas Holsti [this message]
2021-07-10 2:57 ` Randy Brukardt
2021-07-12 15:56 ` Shark8
2021-06-30 10:17 ` Luke A. Guest
2021-07-01 18:07 ` Gabriele Galeotti
2021-07-02 7:32 ` Marius Amado-Alves
2021-07-03 11:35 ` Gabriele Galeotti
2021-07-03 11:46 ` Gabriele Galeotti
2021-07-03 19:11 ` Simon Wright
2021-07-04 7:22 ` Simon Wright
2021-07-06 23:07 ` Randy Brukardt
2021-06-30 10:26 ` Luke A. Guest
2021-06-30 19:31 ` Simon Wright
2021-06-30 23:06 ` Rod Kay
2021-07-01 0:06 ` Stephen Leake
2021-07-01 3:55 ` Randy Brukardt
2021-07-03 10:42 ` Stephen Leake
2021-07-03 1:22 ` Nasser M. Abbasi
2021-07-03 4:59 ` Matt Borchers
2021-07-03 7:37 ` Gautier write-only address
2021-07-03 7:42 ` Gautier write-only address
2021-07-03 7:57 ` Niklas Holsti
2021-07-03 7:46 ` Gautier write-only address
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox