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!.POSTED!not-for-mail From: "Jeffrey R. Carter" Newsgroups: comp.lang.ada Subject: Re: Type naming conventions: Any_Foo Date: Sat, 7 Dec 2019 11:19:27 +0100 Organization: Also freenews.netfront.net; news.tornevall.net; news.eternal-september.org Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Date: Sat, 7 Dec 2019 10:19:28 -0000 (UTC) Injection-Info: reader02.eternal-september.org; posting-host="64ebb0f37a42dfa81055c295c2af9659"; logging-data="21564"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+WOiRJ37lG7TiQp9ZJBLUBPn9dGpmF0J8=" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.2.1 Cancel-Lock: sha1:pe32ODfdD85tmUJsT30ZVaWCOlk= In-Reply-To: Content-Language: en-US Xref: reader01.eternal-september.org comp.lang.ada:57684 Date: 2019-12-07T11:19:27+01:00 List-Id: On 12/6/19 10:55 PM, Niklas Holsti wrote: > On 2019-12-06 22:11, Jeffrey R. Carter wrote: >> On 12/5/19 10:33 PM, Niklas Holsti wrote: >>> >>>     Weapon : Weapon_Id; >>> >>> The variable Weapon does not represent a Weapon; it represents an identifier >>> of a Weapon, so the name Weapon is IMO a little misleading. >> >> Obviously there are no weapons in the S/W; there are only bit patterns that >> you have decided to interpret in various ways. But if you're modeling the >> problem space and it contains something called Weapon, then your software had >> better have something named Weapon it in, too. > > Agreed. And obviously the thing in the software named Weapon contains a bit pattern that you interpret as identifying the actual Weapon in the problem space. In other words, Weapon contains a Weapon identifier, and the declaration is not misleading at all. -- Jeff Carter "C++ is like jamming a helicopter inside a Miata and expecting some sort of improvement." Drew Olbrich 51