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=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!feeder.eternal-september.org!nntp-feed.chiark.greenend.org.uk!ewrotcd!newsfeed.xs3.de!io.xs3.de!news.jacob-sparre.dk!franka.jacob-sparre.dk!pnx.dk!.POSTED.109.56.149.53.mobile.3.dk!not-for-mail From: Jacob Sparre Andersen Newsgroups: comp.lang.ada Subject: Re: Tagged type naming convention Date: Sun, 05 Nov 2017 20:01:00 +0100 Organization: JSA Research & Innovation Message-ID: <87y3nkft3n.fsf@jacob-sparre.dk> References: <2689fb89-cbde-4d32-9944-4c4c10c34e5e@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: franka.jacob-sparre.dk; posting-host="109.56.149.53.mobile.3.dk:109.56.149.53"; logging-data="17192"; mail-complaints-to="news@jacob-sparre.dk" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.4 (gnu/linux) Cancel-Lock: sha1:XwKu4iEaAH5N5I5P340n5puFu6A= Xref: news.eternal-september.org comp.lang.ada:48724 Date: 2017-11-05T20:01:00+01:00 List-Id: Jere writes: > I was looking at an older document for a naming convention for tagged > types and stumbled upon J.P. Rosen's "A Naming Convention for Classes > in Ada 9X" [1]. It's pretty intriguing and, even though it was > developed for 9X, it has applicability in the current Ada revision. > However, I haven't really seen it employed in any of the libraries > I've messed with. Keep in mind, my experience with external libraries > is limited. I was curious if this style is something that a lot of > people use and had some input on. Is it still in use? Pros/Cons > based on experience using it? It is definitely still in use. I use it. > One concern for it is consistency. It was presented with tagged types > in mind, but even non tagged types provide inheritance and primitive > operations that can be overridden. Should it be applied to those as > well if used? Only if you stick to the pattern of a single type per package. I only use Jean-Pierres's naming pattern for the primary type in a package. Any "helper" types have more arbitrary names. Jean-Pierre's naming pattern is one of the two suggested in the Ada 95 Quality and Style Guide. Greetings, Jacob -- Better save than sorry!