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,93cb102974dc309 X-Google-Attributes: gid103376,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII Path: g2news1.google.com!news1.google.com!lightspeed.eweka.nl!81.171.88.16.MISMATCH!eweka.nl!hq-usenetpeers.eweka.nl!69.16.177.246.MISMATCH!cyclone03.ams.highwinds-media.com!news.highwinds-media.com!npeersf02.ams.highwinds-media.com!newsfe24.ams2.POSTED!7564ea0f!not-for-mail From: Stephen Horne Newsgroups: comp.lang.ada Subject: Re: Naming conventions : where does the capital letter come frome ? Message-ID: References: <40018f14-ff25-4701-8b5b-52c512e5fc99@m44g2000hsc.googlegroups.com> X-Newsreader: Forte Agent 1.93/32.576 English (American) MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit NNTP-Posting-Host: 82.45.95.239 X-Complaints-To: http://netreport.virginmedia.com X-Trace: newsfe24.ams2 1222544239 82.45.95.239 (Sat, 27 Sep 2008 19:37:19 UTC) NNTP-Posting-Date: Sat, 27 Sep 2008 19:37:19 UTC Organization: virginmedia.com Date: Sat, 27 Sep 2008 20:40:15 +0100 Xref: g2news1.google.com comp.lang.ada:2108 Date: 2008-09-27T20:40:15+01:00 List-Id: On Fri, 26 Sep 2008 18:52:52 -0700 (PDT), Hibou57 (Yannick Duch�ne) wrote: >Hello and Bonsoir, > >I was wondering why the most used Ada naming convention use capital >letters with underscores.... further more, why capital letters while >there are underscores to help to discern identifier parts ? 1. Why not? 2. For fast reading, two visual cues are better than one. 3. To fit in with the crowd ;-) After all, it doesn't create any clutter. It's just a few capital letters. Incidentally, acronyms are one of the reasons why I don't like theJavaStandardNamingConvention. aTLAInAnIdentifierMakesItConfusing because the word break isn't immediately obvious. Plus the underscores serve the same purpose as blank lines - spacing things out a bit. For capital letters, the reasons probably aren't so strong, and some people use different case conventions for different kinds of identifiers. I've seen generic names in all-caps, for example, and variables in all-lowercase, with mixed case used for functions, procedures and (IIRC) types.