new DIP47: Outlining member functions of aggregates

Craig Dillabaugh cdillaba at cg.scs.carleton.ca
Tue Sep 10 07:44:22 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

I think using calling the variable 'dummy' would likely do the
trick in those instances, but this makes sense.


More information about the Digitalmars-d mailing list