Naming things: Phobos Programming Guidelines Propsal
Michel Fortin
michel.fortin at michelf.com
Wed Jul 29 08:34:37 PDT 2009
On 2009-07-29 11:24:18 -0400, Ary Borenszweig <ary at esperanto.org.ar> said:
> Michel Fortin wrote:
>> I'd go with "ConnectAction" to make sure there's a noun. The rule
>> following the "don't repeat the base class name" one is aimed at
>> allowing this specific usage. It says:
>>
>> """
>> It is fine to repeat the base type name in the derived type name if the
>> derived type is only a specialization having the same function:
>>
>> class RemoteObject : Object { } // right
>> class TcpSocket : Socket { } // right
>> """
>>
>> Obviously it doesn't seem too well worded. Any alternative suggestion?
>
> I like it like that. It's a good rule. :)
I added your ConnectAction example, this way there is an example with a
verb in front of a noun.
--
Michel Fortin
michel.fortin at michelf.com
http://michelf.com/
More information about the Digitalmars-d
mailing list