comp.lang.ada
 help / color / mirror / Atom feed
From: Adam Beneschan <adambeneschan@aol.com>
Subject: Re: Dereferencing and style guides
Date: Thu, 10 Oct 2013 07:48:16 -0700 (PDT)
Date: 2013-10-10T07:48:16-07:00	[thread overview]
Message-ID: <23baa71a-6293-452c-89de-16052a198d20@googlegroups.com> (raw)
In-Reply-To: <alpine.DEB.2.10.1310100934160.26647@debian>

On Thursday, October 10, 2013 12:35:31 AM UTC-7, Stefan...@uni-weimar.de wrote:

> > I like the syntax of Pascal: If X is a pointer, then "X" denotes that
> > pointer, "X^" denotes the object it points at (all of it!), and "X^.Y"
> > denotes the Y component of the object X points at (again, all of that
> > component!).  And "X.Y" is illegal.
> 
> > Since dereference is just one character, it's not painful to read.
> > And it imparts useful information.
> 
> Agreed! This is one of the few points where Ada really made things from 
> Pascal worse.

I can imagine that Ada might have adopted the same syntax, if only those old keypunch machines had a ^ character on them.

On the other hand, I'm not sure about the idea that "making things just one character" equates to readability.  If that were true, APL would be the most readable language around.  And C would be second.

                             -- Adam



  reply	other threads:[~2013-10-10 14:48 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-09-30  6:35 Dereferencing and style guides Natasha Kerensikova
2013-09-30  7:13 ` Dmitry A. Kazakov
2013-09-30 12:51 ` Robert A Duff
2013-09-30 16:49   ` Georg Bauhaus
2013-09-30 18:18     ` Jeffrey Carter
2013-10-03 19:20     ` Robert A Duff
2013-10-04 13:22       ` Georg Bauhaus
2013-10-04 13:25         ` Georg Bauhaus
2013-10-07 16:10       ` Eryndlia Mavourneen
2013-10-08  0:48         ` Robert A Duff
2013-10-10  7:35           ` Stefan.Lucks
2013-10-10 14:48             ` Adam Beneschan [this message]
2013-10-10 22:49               ` Robert A Duff
2013-10-11  8:07                 ` Bill Findlay
2013-10-11 12:52                   ` Robert A Duff
2013-10-11 13:02                     ` G.B.
2013-10-11 13:19                     ` Bill Findlay
2013-10-19  2:40                     ` Randy Brukardt
2013-10-19  2:46                     ` Randy Brukardt
2013-10-19  2:36           ` Randy Brukardt
2013-09-30 13:53 ` Eryndlia Mavourneen
replies disabled

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