comp.lang.ada
 help / color / mirror / Atom feed
From: William Findlay <yaldnif.w@blueyonder.co.uk>
Subject: Re: Real syntax problems in Ada
Date: Thu, 30 Aug 2012 23:54:10 +0100
Date: 2012-08-30T23:54:10+01:00	[thread overview]
Message-ID: <CC65ADA2.1CBA8%yaldnif.w@blueyonder.co.uk> (raw)
In-Reply-To: d9d6d423-cc2b-4e97-ac06-8e684c756006@googlegroups.com

On 30/08/2012 23:34, in article
d9d6d423-cc2b-4e97-ac06-8e684c756006@googlegroups.com, "Adam Beneschan"
<adam@irvine.com> wrote:

> On Thursday, August 30, 2012 3:06:41 PM UTC-7, (unknown) wrote:
>> On Tuesday, August 28, 2012 4:13:02 AM UTC-4, Dmitry A. Kazakov wrote:
>> 
>>> What are real problems with Ada syntax as opposed to the imaginary ones
>> 

>> Not that it's a syntax problem, but I've always been suprised by the choice
>> to use 'all' to explicitly dereference an access value; I don't think a
>> casual reader of the langauge would be able to guess what it does.
> 
> It makes some sense if A is an access to a record; then you can say A.abc for
> component "abc" in the record, A.xyz for component xyz, and A.all for the
> whole thing, i.e. all components.  Of course, to be consistent, that would
> mean that if A were an access to an array, we'd use A(2) for the index=2
> element, A(2..5) to refer to a slice of the array, and A(all) to refer to the
> entire array.  Oh well.

This is more a comment on the thread in general than on Adam's remark.

There is a famous quotation by Emerson: A foolish consistency is the
hobgoblin of little minds.

While there is much to be said for a general predictability of style and
syntax, a principle that Ada follows by and large; it is also true that a
moderate variety of expression sharpens the attention and prevents a text
from melting into a homogeneous mass with few obvious points of reference.

Some of the proposals seem to risk falling into that trap, in my view.

I think Ada has it about right.

-- 
Bill Findlay
with blueyonder.co.uk;
use  surname & forename;




  reply	other threads:[~2012-09-07  1:22 UTC|newest]

Thread overview: 40+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-08-28  8:13 Real syntax problems in Ada Dmitry A. Kazakov
2012-08-28 10:20 ` Georg Bauhaus
2012-08-28 10:47 ` Niklas Holsti
2012-08-28 11:33   ` J-P. Rosen
2012-08-31 13:35     ` Robert A Duff
2012-08-28 13:27 ` Vasiliy Molostov
2012-08-28 15:23   ` Dmitry A. Kazakov
2012-08-28 20:18     ` Vasiliy Molostov
2012-08-29  7:25       ` Dmitry A. Kazakov
2012-08-29 10:47         ` Vasiliy Molostov
2012-08-29 11:58           ` Dmitry A. Kazakov
2012-08-30 17:38             ` Vasiliy Molostov
2012-08-28 15:14 ` Adam Beneschan
2012-08-28 16:18   ` J-P. Rosen
2012-08-28 16:39   ` Dmitry A. Kazakov
2012-08-28 21:38     ` Randy Brukardt
2012-08-29  6:58       ` Dmitry A. Kazakov
2012-08-29 10:43         ` stefan-lucks
2012-08-29 10:58           ` stefan-lucks
2012-08-29 13:14           ` Niklas Holsti
2012-08-29 17:52             ` stefan-lucks
     [not found]             ` <fbps38pgcuf8fgioptt39s6u7dme1aqs7r@invalid.netcom.com>
2012-09-02 10:16               ` svaa
2012-08-29 13:33           ` Georg Bauhaus
2012-08-29 17:20             ` Jeffrey Carter
2012-08-29 17:51             ` stefan-lucks
2012-08-30  9:12               ` Georg Bauhaus
2012-08-28 21:49   ` Randy Brukardt
2012-08-28 23:09     ` Adam Beneschan
2012-08-29  7:34     ` Egil Høvik
2012-08-28 19:41 ` Florian Weimer
2012-08-28 20:53   ` Shark8
2012-08-28 21:07     ` Adam Beneschan
2012-08-28 21:25       ` Shark8
2012-08-28 22:59         ` Adam Beneschan
2012-08-29  7:06       ` Dmitry A. Kazakov
2012-08-30 21:08         ` Randy Brukardt
2012-08-30 22:06 ` sbelmont700
2012-08-30 22:34   ` Adam Beneschan
2012-08-30 22:54     ` William Findlay [this message]
2012-08-31  7:39     ` Dmitry A. Kazakov
replies disabled

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