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=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,2a687662f09731bb X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news4.google.com!news.glorb.com!fr.ip.ndsoftware.net!skynet.be!peer-uk.news.demon.net!kibo.news.demon.net!news.demon.co.uk!demon!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: Ada Quality and Style book discussion Date: Wed, 16 Nov 2005 05:49:59 +0000 Organization: Pushface Message-ID: References: NNTP-Posting-Host: pogner.demon.co.uk Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: news.demon.co.uk 1132120202 22117 62.49.19.209 (16 Nov 2005 05:50:02 GMT) X-Complaints-To: abuse@demon.net NNTP-Posting-Date: Wed, 16 Nov 2005 05:50:02 +0000 (UTC) Cancel-Lock: sha1:lGMRn/VXzSrfyfnIaQaTx++UHv4= User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (darwin) Xref: g2news1.google.com comp.lang.ada:6417 Date: 2005-11-16T05:49:59+00:00 List-Id: Anonymous Coward writes: > I also object to the guides comment advising against "Day_Type". > It's a very good practice to suffix types with "_Type", "_Record", > or "_Array", so it's clear from the identifier what it refers to, > and also so you don't hijack a good variable name. In the above > case, "Day" can no longer be used to name an object. This is one of the more contentious style arguments. If you work on my project, I will insist that you _don't_ stick these useless suffices on. And I'm not sure that Day is a good variable name; if it's not worth giving it a name which indicates its use, what's wrong with plain D? (we were tempted to have a local style guideline that the length of a name should be log2(lines of scope)). If I work on your project, I'll abide by your rules, of course. > I'm surprized that section 2.1.5 permits: > > procedure Display_Menu_On_Screen ( > Title : in String; > Options : in Menus; > Choice : out Alpha_Numerics > ); > > The last line needlessly kills a line, and I always thought ending a > line with an open grouping symbol (like "(") is pretty ugly. Now here I completely agree with you!