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-Language: ENGLISH,CP1252 Path: g2news2.google.com!news2.google.com!goblin2!goblin.stu.neva.ru!news.net.uni-c.dk!hist.no!uio.no!newsfeed1.funet.fi!newsfeed2.funet.fi!newsfeeds.funet.fi!fi.sn.net!newsfeed1.tdcnet.fi!news.song.fi!not-for-mail Date: Fri, 30 Oct 2009 09:29:42 +0200 From: Niklas Holsti Organization: Tidorum Ltd User-Agent: Mozilla-Thunderbird 2.0.0.22 (X11/20090706) MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Types, packages & objects : the good old naming conventions question (without religious ware) References: In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 8bit Message-ID: <4aea9607$0$6254$4f793bc4@news.tdc.fi> NNTP-Posting-Host: 81.17.205.61 X-Trace: 1256887815 news.tdc.fi 6254 81.17.205.61:54473 X-Complaints-To: abuse@tdcnet.fi Xref: g2news2.google.com comp.lang.ada:8876 Date: 2009-10-30T09:29:42+02:00 List-Id: Jeffrey R. Carter wrote: > Hibou57 (Yannick Duch�ne) wrote: >> >> The one which troubles me the most, is the most common convention >> about type names, without a suffix. This one is very common, and so >> much common that even the Ada standard packages set relies on it. >> There are Boolean, not Boolean_Type, Integer, not Integer_Type, as >> this Chapter 3 recalls. > > A quick Google groups search will find more than one long thread on this > subject. Basically, people fall into 2 groups on this subject: those who > agree with me, and those who are wrong :) > > Some people are wrong the other way: They don't allow type suffices, but > instead use object and parameter prefixes: A_, An_, The_. > > FWIW, I am currently on a large, multi-person project which outlaws > _Type, _T, and the prefixes, and the resulting code is quite readable. Interesting. How does you project solve the type-naming problem? Do you have some positive rules for naming types and objects, or only those negative prohibitions against suffixes and prefixes? -- Niklas Holsti Tidorum Ltd niklas holsti tidorum fi . @ .