Hi,
I have a coding style question which I don't see addressed in the coding
style page.
Given there have been a few threads lately on coding style, I guess I
should just ask.
We have a lot of meaningless argument names in function declarations, like:
void DoFoo(Element& aElement);
Or:
enum class Operation {
// ..
};
void DoBar(Operation aOperation);
I personally think those argument names are mostly noise (the type gives
you the same information), and C++ allows omitting them.
That would make the signature more concise, like:
void DoBar(Operation);
Which is helpful specially in long signatures.
I don't see anything mentioned in the style guide about this, should it be?
-- Emilio
_______________________________________________
dev-platform mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-platform