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

Reply via email to