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
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform

Reply via email to