From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on ip-172-31-74-118.ec2.internal X-Spam-Level: X-Spam-Status: No, score=0.0 required=3.0 tests=BAYES_40,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.6 X-Received: by 2002:a37:7047:: with SMTP id l68mr3818130qkc.417.1625297828808; Sat, 03 Jul 2021 00:37:08 -0700 (PDT) X-Received: by 2002:a25:6d02:: with SMTP id i2mr4170472ybc.309.1625297828532; Sat, 03 Jul 2021 00:37:08 -0700 (PDT) Path: eternal-september.org!reader02.eternal-september.org!news.mixmin.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Sat, 3 Jul 2021 00:37:08 -0700 (PDT) In-Reply-To: <0cc35778-1d06-4e7d-853c-498735faf627n@googlegroups.com> Injection-Info: google-groups.googlegroups.com; posting-host=2a02:1206:4564:bea0:54ae:2aa5:1ce8:336b; posting-account=gRqrnQkAAAAC_02ynnhqGk1VRQlve6ZG NNTP-Posting-Host: 2a02:1206:4564:bea0:54ae:2aa5:1ce8:336b References: <69a59fdc-72bb-4202-99fc-d776530de653n@googlegroups.com> <0cc35778-1d06-4e7d-853c-498735faf627n@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <08c7e196-2bfc-49e9-9035-45a700b8687an@googlegroups.com> Subject: Re: calling function but ignoring results From: Gautier write-only address Injection-Date: Sat, 03 Jul 2021 07:37:08 +0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Xref: reader02.eternal-september.org comp.lang.ada:62320 List-Id: Le samedi 3 juillet 2021 =C3=A0 06:59:19 UTC+2, Matt Borchers a =C3=A9crit= =C2=A0: > Thanks for the feedback. I guess I have to live with five lines to accomp= lish what one should do regardless of the numerous variety of ways to accom= plish this. I mostly appreciate the wordiness of Ada for the clarity it off= ers to the code maintainers, but in some cases the extra wordiness offers n= othing.=20 If you use functions properly (only "in" parameters and not side effects) y= ou don't have this issue at all. Interfacing with C is an edge case which doesn't need to add more noise in = the Ada syntax, IMHO.