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.1 required=5.0 tests=BAYES_05,INVALID_MSGID 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: "W. Wesley Groleau (Wes)" Subject: Re: Warning: Religious naming convention discussion :-) [was: assign help!!] Date: 1997/05/12 Message-ID: <33776FA6.3F78@this.message>#1/1 X-Deja-AN: 241326615 Sender: usenet@most.fw.hac.com (News Administration) X-Nntp-Posting-Host: sparc02 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: Hughes Defense Communications Newsgroups: comp.lang.ada Date: 1997-05-12T00:00:00+00:00 List-Id: John G. Volan wrote: > > Jeff Carter wrote: > > > The problem with putting _Type on the end of all [sub]type names is that > > it adds no information. > > But that's the whole point! Adding any more information is _undesirable_ > at this point, because presumably an object and its type _both_ > represent the _same_ concept If Angle : Angle_Type; is the only object of Angle_Type, then perhaps the declaration of Angle_Type is just clutter. (See my recent post about anonymous array types.) But "Angle" is rather vague. Might we in the future want to deal with more than one Angle? The "same concept" argument could be interpreted to recommend: Angle_1 : Angle_1_Type; Angle_2 : Angle_2_Type; Sum_Angle : Sum_Angle_Type; ..... Sum_Angle := Sum_Angle_Type (Angle_1) + Sum_Angle_Type (Angle_2); If "adding any more information is _undesirable_" then I would say that a language construct that _must_ be there (though it adds nothing) is either a flaw in the language or (more likely) a sign that the program still needs some abstract thought. The above snippet is much clearer as Start_Point, Rotation, End_Point : Angle; ..... End_Point := Start_Point + Rotation; ---------------------------------------------------------------------- Wes Groleau, Hughes Defense Communications, Fort Wayne, IN USA Senior Software Engineer - AFATDS Tool-smith Wanna-be w w g r o l at p s e s e r v 3 dot f w dot h a c dot c o m SPAM should be sent to I.want.one@mailbombs.for.idiots.org If you don't want to pay $500 (see 47 USC 227), don't send it here. ----------------------------------------------------------------------