[Ns-developers] How to be conform to coding style
Mirko Banchi
mk.banchi at gmail.com
Sun Jun 7 12:03:20 PDT 2009
Il giorno 07/giu/09, alle ore 15:06, Tom Henderson ha scritto:
> Mathieu Lacage wrote:
>> On Sun, 2009-06-07 at 01:35 +0200, Mirko Banchi wrote:
>>>>> MgtAddBaRequestHeader
>>>>> MgtAddBaResponseHeader
>>>>> MgtAddDelBaHeader
>>>>> or other?
>>>>> Any advice is very useful!
>>>>> Sorry for this very little question, but this is very important
>>>>> in order to avoid a large number of future changes.
>>>> I'd probably choose AddBA, DelBA, but I don't care strongly.
>>>>
>>>> - Tom
>>>
>>> Ok, i'll choose
>> As usual with coding style, there is no strict rule but the
>> guideline is
>> that we are trying to use MixedCaps to outline word boundaries
>> where the
>> definition of 'word' is, of course, subject to interpretation but, we
>> expect you to use good taste in your interpretation.
>
> Hi, I think you are right that the current coding style guide
> specifies this choice for acronyms-- I will add this as another
> example (e.g. "even two-word acronyms such as BlockAck (BA) or
> Internet Protocol (IP) should be included as Ba or Ip, respectively").
>
Sorry if i have another question but maybe this could be useful to
improve the coding style guide.
How we should declare a static const member of a class?
MyClass {
...
private:
static const m_variable
or
static const M_VARIABLE
or other?
}
Thanks,
Mirko
--
Mirko Banchi
e-mail: mk.banchi at gmail.com
e-mail: mk.banchi at virgilio.it
id-jabber: mk.banchi at jabber.org
PGP key fingerprint:
308F BFB1 4E67 2522 C88E
DC69 7631 52ED 32A5 6456
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2502 bytes
Desc: not available
Url : http://mailman.isi.edu/pipermail/ns-developers/attachments/20090607/7eef1eb8/smime.bin
More information about the Ns-developers
mailing list