From: byhoe@greenlime.com (Adrian Hoe)
Subject: Re: Why not using [] instead of () for array?
Date: 27 Feb 2002 21:29:43 -0800
Date: 2002-02-28T05:29:43+00:00 [thread overview]
Message-ID: <9ff447f2.0202272129.2bafcce8@posting.google.com> (raw)
In-Reply-To: 3c7c9767.727156@News.CIS.DFN.DE
dmitry@elros.cbb-automation.de (Dmitry A. Kazakov) wrote in message news:<3c7c9767.727156@News.CIS.DFN.DE>...
> On 26 Feb 2002 20:54:03 -0800, dewar@gnat.com (Robert Dewar) wrote:
>
> >Toshitaka Kumano <kumano@cl.cilas.net> wrote in message news:<3C7A8668.50BC257B@cl.cilas.net>...
> >
> >> From a mathematical view, The syntax,
> >> Output := Mapping (Input);
> >> can be read "Input maps onto Input".
> >
> >Kumano-san states the mathematical argument very nicely
> >here. Personally I tend to agree with this point of view.
>
> Yes, however analogy is not complete in Ada. At least three things
> spoil this nice equivalence. For arrays one can do:
>
> 1. Result assignment. Mapping (Input) := Output
>
> 2. Index ranges. Subset := Mapping (From..To)
>
> 3. Aggregates
>
> This by no means invalidates the argument of course. Rather opposite,
> one should support access results, user-defined index types (=>ranges,
> slices), user-defined aggregates ...
>
> ... and maybe user-defined []-operator (:-))
>
> Regards,
> Dmitry Kazakov
Kumano-san mathematical arguments are agreeable (at least with me:).
And Kazakov's user-defined []-operator (proposed?) seems acceptable
since Pascal provides alternative digraphs (. for [ :)
At least, I get to know of this ASCII problem with programming
languages.
Anyway, I am comfortable with () and I will know to handle this
question if ever comes to me again. :)
-- Adrian Hoe
-- http://greenlime.com/users/adrian.hoe
next prev parent reply other threads:[~2002-02-28 5:29 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-02-25 1:19 Why not using [] instead of () for array? Adrian Hoe
2002-02-25 1:48 ` Larry Kilgallen
2002-02-25 3:14 ` Darren New
2002-02-25 10:14 ` Peter Hermann
2002-02-25 3:23 ` Dale Stanbrough
2002-02-25 5:28 ` David Starner
2002-02-25 14:39 ` Robert Dewar
2002-02-26 7:56 ` Mats Karlssohn
2002-02-27 4:52 ` Robert Dewar
2002-02-27 16:44 ` Darren New
2002-02-27 14:29 ` David Starner
2002-02-27 0:50 ` Adrian Hoe
2002-02-27 17:37 ` Jeffrey Carter
2002-02-25 18:46 ` Toshitaka Kumano
2002-02-27 4:54 ` Robert Dewar
2002-02-27 8:48 ` Dmitry A. Kazakov
2002-02-28 5:29 ` Adrian Hoe [this message]
2002-02-28 21:39 ` Florian Weimer
2002-02-27 1:09 ` Adrian Hoe
-- strict thread matches above, loose matches on Subject: below --
2002-02-28 6:37 Christoph Grein
2002-02-28 22:56 ` Jeffrey Carter
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox