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,d2bfd9e7e44fbefe X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.66.89.65 with SMTP id bm1mr3949558pab.34.1350428858735; Tue, 16 Oct 2012 16:07:38 -0700 (PDT) MIME-Version: 1.0 Path: s9ni16481pbb.0!nntp.google.com!news.glorb.com!weretis.net!feeder4.news.weretis.net!nuzba.szn.dk!news.jacob-sparre.dk!munin.jacob-sparre.dk!pnx.dk!.POSTED!not-for-mail From: "Randy Brukardt" Newsgroups: comp.lang.ada Subject: Re: Ada's identifiers casing considered ugly Date: Tue, 16 Oct 2012 18:07:32 -0500 Organization: Jacob Sparre Andersen Research & Innovation Message-ID: References: NNTP-Posting-Host: static-69-95-181-76.mad.choiceone.net X-Trace: munin.nbi.dk 1350428857 22757 69.95.181.76 (16 Oct 2012 23:07:37 GMT) X-Complaints-To: news@jacob-sparre.dk NNTP-Posting-Date: Tue, 16 Oct 2012 23:07:37 +0000 (UTC) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.5931 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6157 X-RFC2646: Format=Flowed; Response Date: 2012-10-16T18:07:32-05:00 List-Id: "Nasser M. Abbasi" wrote in message news:k28mt2$jnj$1@speranza.aioe.org... ... > "I like underscore in names of variables. But I do not like > at all the current Ada tradition of using Upper case for > first letter as in > > This_Is_An_Identifier > > I find this ugly and hard on the eye to read. I agree with this. > ... I like > all lower case for variable names, as it is easier to read. Less > variation in texture and form > > this_is_an_identifier" But I don't agree with this. This blends identifiers and reserved words into an unreadable mess. (Maybe it's OK if you ONLY use colorizing editors and never expect anyone else to use your code.) RRS uses "title case" for identifiers, which means that we use the same casing as you would if you wrote this as the title of something. For the above, that gives: This_is_an_Identifier Our pretty printer can enforce this style directly (it has a list of words that aren't capitalized). I've also experimented with capitalizing just the first letter: This_is_an_identifier I definitely agree that capitalizing words like "Is" is ugly. I get in trouble repeatedly working on the Ada Standard, because I naturally refuse to type "_Is_" and thus a lot of identifiers end up in the "wrong" case. Randy.