lmi
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lmi] omitting parameter name


From: Evgeniy Tarassov
Subject: [lmi] omitting parameter name
Date: Fri, 13 Apr 2007 00:36:22 +0200

Hello!

Greg -- could you please shortly explain what is the LMI guideline for
omitting/specifying function parameter name?

AFAIK a parameter name could be (should be?) omitted if (if and only
if?) the function parameter meaning could be easily understood from
its type, like in:

class printable
{
 void print_me(std::ostream&) const;
};

What about mixing styles inside the same function? I.e. omitting one
parameter name and keeping another one:

class printable
{
 ...
 void print_me(std::ostream&, bool include_title) const;
};

Thank you in advance!

--
Best wishes,
Evgeniy Tarassov




reply via email to

[Prev in Thread] Current Thread [Next in Thread]