comp.lang.ada
 help / color / mirror / Atom feed
From: Egil H H <ehh.public@gmail.com>
Subject: Re: Latest suggestion for 202x
Date: Sun, 16 Jun 2019 23:54:48 -0700 (PDT)
Date: 2019-06-16T23:54:48-07:00	[thread overview]
Message-ID: <797c8c6d-5f74-469d-951d-0cbbc8005792@googlegroups.com> (raw)
In-Reply-To: <9dcf22a2-2255-4089-b1f0-93e31448415e@googlegroups.com>

On Sunday, June 16, 2019 at 6:54:30 PM UTC+2, Maciej Sobczak wrote:
> > An array can be easily swapped for a function without requiring major changes all over the place, as array indexing and function calls have the same syntax.
> 
> A(I) := 7;
> 
> Swap(A(I), A(J));
> 
> Sort_Subarray(A(1..10));
> 
> ...
> 
> Not really.
> 
> Arrays are *not* exchangeable with function calls.

Maybe not 100%, but that doesn't mean it's not a useful feature. I've certainly had use for it on more than one occasion. It also works the other way around; if your algorithm inside a function is measured to have sub-par performance, it's easy to exchange it for a pre-calculated lookup-table.

> Therefore, the fact that they have similar syntax is more a source for confusion than any genuine advantage. 

I don't find it confusing. Having a similar syntax just makes everything come together in a very nice fashion that feels familiar and aesthetically pleasing to the eyes, i.e. readable.

> Also, the bracketing used is different from any other popular programming language, which further adds to confusion. 

Well, we don't want to repeat the mistakes of others :p


> Also, it cannot be easily found by text-based tools without complete semantic capability (grep, etc.).

There's often more than one array in my codebase... Even within one file there can be both definition and usage of more than one array. So grep-ing for square brackets can give hundreds of false positives. I would much rather just grep for the type name of the actual array I'm interested in.


-- 
~egilhh


  parent reply	other threads:[~2019-06-17  6:54 UTC|newest]

Thread overview: 60+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-06-15 23:59 Latest suggestion for 202x Micah Waddoups
2019-06-16  5:14 ` Jerry
2019-06-16  7:17 ` Dmitry A. Kazakov
2019-06-16 10:22 ` Egil H H
2019-06-16 16:54   ` Maciej Sobczak
2019-06-16 20:09     ` Dmitry A. Kazakov
2019-06-17  6:54     ` Egil H H [this message]
2019-06-17  7:42       ` J-P. Rosen
2019-06-17 12:01     ` Mart van de Wege
2019-06-17 13:35       ` Maciej Sobczak
2019-06-17 15:20         ` Dmitry A. Kazakov
2019-06-17 15:32           ` Paul Rubin
2019-06-17 16:43             ` Dmitry A. Kazakov
2019-06-17 21:38           ` Keith Thompson
2019-06-18 15:48             ` Jeffrey R. Carter
2019-06-20 22:21             ` Randy Brukardt
2019-06-21  9:42               ` Dmitry A. Kazakov
2019-06-21 18:12                 ` Keith Thompson
2019-06-21 18:43                   ` Dmitry A. Kazakov
2019-06-21 20:24                     ` Keith Thompson
2019-06-22  6:54                       ` Dmitry A. Kazakov
2019-06-22  8:43                         ` Randy Brukardt
2019-06-22  9:00                           ` Dmitry A. Kazakov
2019-06-22 17:44                         ` Keith Thompson
2019-06-22 18:34                           ` Bill Findlay
2019-06-22 18:37                           ` Dmitry A. Kazakov
2019-06-23  7:38                             ` G.B.
2019-06-23  8:29                               ` Dmitry A. Kazakov
2019-06-23 18:34                               ` Optikos
2019-06-23 19:20                                 ` Dennis Lee Bieber
2019-06-22 20:48                           ` Optikos
2019-06-22 20:53                             ` Optikos
2019-06-23 17:42                             ` Dennis Lee Bieber
2019-06-24  5:07                               ` J-P. Rosen
2019-06-24  5:40                                 ` Paul Rubin
2019-06-24  7:16                                   ` Niklas Holsti
2019-06-26 18:00                                     ` Stephen Leake
2019-06-24 13:07                                   ` J-P. Rosen
2019-06-24 11:12                                 ` Stefan.Lucks
2019-06-24 12:06                                   ` Niklas Holsti
2019-06-24 20:22                                     ` Randy Brukardt
2019-06-24 20:32                                       ` Keith Thompson
2019-06-24 20:47                                       ` Jeffrey R. Carter
2019-06-24 13:10                                   ` J-P. Rosen
2019-06-22  8:36                   ` Randy Brukardt
2019-06-22 17:39                     ` Keith Thompson
2019-06-16 19:34 ` Optikos
2019-06-16 20:10   ` John Perry
2019-06-16 20:57     ` Optikos
2019-06-16 21:36       ` Dmitry A. Kazakov
2019-06-17 16:48     ` G. B.
2019-06-17 17:12     ` Paul Rubin
2019-06-16 21:41 ` Lucretia
2019-06-19  2:36 ` Micah Waddoups
2019-06-19 11:14   ` Lucretia
2019-06-19 11:45     ` briot.emmanuel
2019-06-19 14:34       ` Optikos
2019-06-19 19:29         ` Lucretia
2019-06-19 16:12   ` G. B.
2019-06-23 20:17 ` Per Sandberg
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox