Reviewers: Andrey Mazo, gjcarneiro,
Message:
As discussed on list, I'll also do an audit of the codebase to see
whether we have predominantly
Foo (void) or Foo () in function arguments.
http://codereview.appspot.com/165087/diff/1/2
File html_src/code-submission.html (right):
http://codereview.appspot.com/165087/diff/1/2#newcode96
html_src/code-submission.html:96: with our codebase.
On 2009/12/08 10:34:01, Andrey Mazo wrote:
> This is mostly a copy&paste from "General Guidelines" of
codingstyle.html.
> Maybe is it better to just put a reference here?
OK, I will try to avoid duplication in the next revision.
http://codereview.appspot.com/165087/diff/1/2#newcode114
html_src/code-submission.html:114: <p> Maintainers should be free to ask
for rewrites of portions that modify
On 2009/12/08 10:34:01, Andrey Mazo wrote:
> "to ask for" or "to be asked for"?
> Sorry, if this is just my bad English.
"Maintainers should be free to ask contributors for rewrites.."
http://codereview.appspot.com/165087/diff/1/3
File html_src/codingstyle.html (right):
http://codereview.appspot.com/165087/diff/1/3#newcode34
html_src/codingstyle.html:34: <p>In general, the Python code layout
follows the XXX.
On 2009/12/08 11:23:01, gjcarneiro wrote:
> Python style is given by PEP 8:
http://www.python.org/dev/peps/pep-0008/
> Yes, it is odd that python uses func(...) while NS-3 C++ uses func
(...), but
OK, thanks.
> PEP 8 is already a widely used standard, worth keeping...
http://codereview.appspot.com/165087/diff/1/3#newcode244
html_src/codingstyle.html:244: <p> XXX what to do about enum names? Use
or avoid the trailing _e?
On 2009/12/08 10:34:01, Andrey Mazo wrote:
> Seems, that the existing codebase mostly avoids the trailing _e or E.
> Most of the names of enums contain something like Type, Mode, Class,
Standard,
> State and thus it's generally clear, that a enum is mentioned.
> So +1 from me to avoid the trailing _e.
I tend to think of us having this trailing _e (look at ArpCacheEntry).
Anyway, I don't mind to remove it and it shouldn't really be a
noticeable change.
Please review this at
http://codereview.appspot.com/165087
Affected files:
M html_src/code-submission.html
M html_src/codingstyle.html