From: "J-P. Rosen" <rosen@adalog.fr>
Subject: Re: Type naming conventions: Any_Foo
Date: Fri, 6 Dec 2019 10:55:28 +0100
Date: 2019-12-06T10:55:28+01:00 [thread overview]
Message-ID: <qsd8if$999$1@dont-email.me> (raw)
In-Reply-To: <3f12f2df-cd5d-4862-9ca0-9a16d4d7cff3@googlegroups.com>
Le 06/12/2019 à 09:57, AdaMagica a écrit :
> Also a declaration like
>
> My_Weapon: Weapons.Weapon;
>
> is akward when use-clause is banned. So a further point to consider
> is whether you want your package to be used with use-clause or
> without:
>
> My_Weapon: Weapons.Object;
>
> I'm not sure I like this.
Small remark: do not confuse using the use clause, and not using
selected names. You are perfectly allowed to use slected names within
the scope of a use clause if you feel it is more readable!
I am a known supporter of the use clause, however for classes, I use the
package for the object name, and "object" for the record that's the data
part of it. Of course, I always use selected names in that case.
[small plug] There is an AdaControl rule to check that some names always
use selected notation.
Whether or not you are hostile to the use clause, the best advice is to
choose a name which is nice for your favorite notation, and acceptable
for the other one.
--
J-P. Rosen
Adalog
2 rue du Docteur Lombard, 92441 Issy-les-Moulineaux CEDEX
Tel: +33 1 45 29 21 52, Fax: +33 1 45 29 25 00
http://www.adalog.fr
next prev parent reply other threads:[~2019-12-06 9:55 UTC|newest]
Thread overview: 42+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-12-04 13:56 Type naming conventions: Any_Foo Alejandro R. Mosteo
2019-12-04 14:52 ` Lucretia
2019-12-04 16:42 ` Alejandro R. Mosteo
2019-12-05 10:51 ` AdaMagica
2019-12-05 17:27 ` Jeffrey R. Carter
2019-12-05 17:45 ` Dmitry A. Kazakov
2019-12-05 20:03 ` Jeffrey R. Carter
2019-12-05 21:51 ` Dmitry A. Kazakov
2019-12-05 23:12 ` Randy Brukardt
2019-12-06 20:20 ` Jeffrey R. Carter
2019-12-07 1:19 ` Randy Brukardt
2019-12-06 20:18 ` Jeffrey R. Carter
2019-12-06 20:35 ` Dmitry A. Kazakov
2019-12-07 0:57 ` Randy Brukardt
2019-12-07 10:28 ` Jeffrey R. Carter
2019-12-07 12:36 ` Niklas Holsti
2019-12-08 12:04 ` Jeffrey R. Carter
2019-12-07 10:13 ` Jeffrey R. Carter
2019-12-07 11:21 ` Dmitry A. Kazakov
2019-12-08 11:55 ` Jeffrey R. Carter
2019-12-08 12:38 ` Dmitry A. Kazakov
2019-12-08 14:31 ` Shark8
2019-12-08 21:58 ` Jeffrey R. Carter
2019-12-09 22:47 ` Shark8
2019-12-07 23:24 ` Jere
2019-12-08 12:14 ` Jeffrey R. Carter
2019-12-09 22:07 ` Randy Brukardt
2019-12-05 19:49 ` Niklas Holsti
2019-12-05 20:47 ` Jeffrey R. Carter
2019-12-05 21:33 ` Niklas Holsti
2019-12-06 11:44 ` Lucretia
2019-12-06 20:23 ` Jeffrey R. Carter
2019-12-06 20:11 ` Jeffrey R. Carter
2019-12-06 20:46 ` Dmitry A. Kazakov
2019-12-06 21:55 ` Niklas Holsti
2019-12-07 10:19 ` Jeffrey R. Carter
2019-12-07 12:05 ` Niklas Holsti
2019-12-08 11:59 ` Jeffrey R. Carter
2019-12-06 8:57 ` AdaMagica
2019-12-06 9:55 ` J-P. Rosen [this message]
2019-12-06 15:30 ` Optikos
2019-12-07 3:34 ` Shark8
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox