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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,2afac1a4161c7f35 X-Google-Attributes: gid103376,public From: dewar@merv.cs.nyu.edu (Robert Dewar) Subject: Re: Distinguishing type names from other identifiers Date: 1998/01/14 Message-ID: #1/1 X-Deja-AN: 315939589 References: <69iq42$ukn@lotho.delphi.com> X-Complaints-To: usenet@news.nyu.edu X-Trace: news.nyu.edu 884807344 28285 (None) 128.122.140.58 Organization: New York University Newsgroups: comp.lang.ada Date: 1998-01-14T00:00:00+00:00 List-Id: tmoran says <> THis is one of those arguments which goes like this I support the idea of doing X This is because X promotes readability Readability is good because (long string of mother and applie pie stuff, constituting the bulk of the argument). Yes, yes, we all agree with step 3, but however much we agree with step 3 does not encourage us to accept your belief in step 2 without arguments. Your argument boils down to I think that using _Type makes things more readable for a maintenance programmer. But many others (including most certainly me) think that using useless noise suffixes like this *compromises* readability, and can be a detriment to maintenance programmers. Experience shows again and again that the GNAT code is very easy for a new programmer to learn. We have lots of experiences now of people plunging into this code and very quickly getting to the point where they can make subtle changes successfully. The GNAT code does not use this kind of suffixing routinely, though it uses it occasionally where it seems useful. Once again, there is a real danger in either mandating such usage all the time or in forbidding it. This does not prove that it is a good idea not to use the suffix all the time, but it is one data point (I am sure other readers can supply lots of others) that shows that the claim that if you *don't* do this, your code will be unreadable and unmaintainable is bogus! So without more facts, this comes down to a matter of taste, about which it is a bit of a waste of time to argue!