new DIP47: Outlining member functions of aggregates
Dicebot
public at dicebot.lv
Tue Sep 10 07:53:06 PDT 2013
On Tuesday, 10 September 2013 at 14:15:19 UTC, bearophile wrote:
> Craig Dillabaugh:
>
>> Apart from functions with say variadic parameter lists, is this
>> really all that useful?
>
> There are rare situations when you need to add a certain
> argument to the function signature, but you don't need to use
> that argument inside the method/function. This happens for
> example because of code evolution. In such cases not giving a
> name to the argument is good, you avoid introducing a useless
> and unused variable name, making the code simpler, safer, and
> more clear.
>
> Bye,
> bearophile
It is never the case in the declaration though. You always want
parameter names there, to reference them in DDOC comment at the
very least.
More information about the Digitalmars-d
mailing list