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.2 required=5.0 tests=BAYES_00,INVALID_MSGID, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,2078dddcdcd8d83 X-Google-Attributes: gid103376,public From: Ben Brosgol Subject: Re: Warning: Religious naming convention discussion :-) [was: assign help!!] Date: 1997/05/14 Message-ID: <337934F2.7593@world.std.com>#1/1 X-Deja-AN: 241439031 Sender: news@world.std.com (Mr Usenet Himself) References: <5kjvcv$evt@news.cis.nctu.edu.tw> <5kn8ko$jcc@top.mitre.org> <1997May7.201035.2439@nosc.mil> <33727EEA.2092@sprintmail.com> <5kuf1j$17vi@uni.library.ucla.edu> <3373666A.31DFF4F5@spam.innocon.com> <3373EAB5.73A0@sprintmail.com> Organization: The World @ Software Tool & Die Reply-To: brosgol@world.std.com Newsgroups: comp.lang.ada Date: 1997-05-14T00:00:00+00:00 List-Id: Robert Dewar wrote: > > In my programming the name clash that I most often come across is something > like > > Parent : constant xxx := Parent (K); > > now of course I don't want to use the same name in both places here, and > I have not really settled on a convention. I don't like The_Parent, because > I find The_ too much noise. Often I use an abbreviation if the scope is > very small, something like > > Parnt : constant xxx := Parent (K); Here's a modest proposal for Ada 0Y that will solve this problem: allow an identifier to include a single trailing underscore. That way you could write: Parent_ : constant xxx := Parent (K); with a minimum of notational overhead. Too bad nobody thought of this idea for Ada 9X :-) :-) Ben Brosgol Aonix brosgol@aonix.com