From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-0.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!news.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Natasha Kerensikova Newsgroups: comp.lang.ada Subject: Dereferencing and style guides Date: Mon, 30 Sep 2013 06:35:09 +0000 (UTC) Organization: A noiseless patient Spider Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Injection-Date: Mon, 30 Sep 2013 06:35:09 +0000 (UTC) Injection-Info: mx05.eternal-september.org; posting-host="31d6bde745a337034b005384ef225743"; logging-data="9397"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/R+vl92hSuUl/qGxjT77AP" User-Agent: slrn/0.9.9p1 (FreeBSD) Cancel-Lock: sha1:14W4D7HHwMeBKHqdBdy02/s0bRk= Xref: news.eternal-september.org comp.lang.ada:17347 Date: 2013-09-30T06:35:09+00:00 List-Id: 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