comp.lang.ada
 help / color / mirror / Atom feed
* Dereferencing and style guides
@ 2013-09-30  6:35 Natasha Kerensikova
  2013-09-30  7:13 ` Dmitry A. Kazakov
                   ` (2 more replies)
  0 siblings, 3 replies; 21+ messages in thread
From: Natasha Kerensikova @ 2013-09-30  6:35 UTC (permalink / raw)


Hello,

I have found that I often feel the to explicitly dereference access
values, using .all, even when it can be omitted, because it feels more
readable. That's especially true in portions of code that deal with
both "real" objects and access to such object.

However, I don't think I have ever met or discussed with anyone who does
not favor using .all only it is mandatory. And I haven't found any style
guide that explicitly favors one way or the other.

I think somehow I like to have my statements as context-free as
possible. So when I see Some_Variable.all I don't have to remember that
Some_Variable is actually an access value rather than a full-fledged
object.

On the other hand, I think I understand the case for syntax overloading:
I could be seen as a feature to have the same syntax (when possible) for
an access value and an object value, just like it is for array
indexation and function calls. Though I don't really subscribe to the
point of view.

So what do you think about the topic?
Are there other people here favoring non-mandatory .all?
Have I missed some guidelines and rationals discussion the question?


Thanks for your help,
Natasha

^ permalink raw reply	[flat|nested] 21+ messages in thread

end of thread, other threads:[~2013-10-19  2:46 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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
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

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