Daniel Grunblatt wrote:

On Friday 05 September 2003 12:34, Steve Fink wrote:


In my own coding, I follow the rule of "leave it out if the type tells
you everything you need to know about the purpose." But that's a
subjective decision, and therefore dangerous to put in a coding style
guide.



I think that sometime the type is not enough to know everything you need, so having the name gets you closer (of course, if the name is representative enough).


Daniel.


Yes, I agree. I meant "if and only if" when I said "if". So leave out the parameter name if the type tells you all you need to know, but include the name if the type is insufficient.


Reply via email to